Re: [PATCH? 3/3] move daemonized kernel threads into the swapper's session

From: Eric W. Biederman
Date: Mon Nov 26 2007 - 13:58:53 EST


Oleg Nesterov <oleg@xxxxxxxxxx> writes:

> Any reason why daemonized kthread still uses 1,1 special pids? This patch
> sets 0,0 pids, this matches kthread_create'ed threads.

You got it in your reply...

> Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

Acked-by: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>



Hmm. I wonder if we could ensure kernel_thread always
returns a global pid_t, and then reallocate the struct
pid for the task we have just daemonized so that it only
has a single pid in the init_pid_ns.

That would remove our capturing of child pid namespaces.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/