[EMAIL PROTECTED] (Eric W. Biederman) writes:
> 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.
Well we can't reallocate the struct
Oleg Nesterov <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
Acked-by: "Eric W. Biederman" <[EMAIL
On 11/26, Oleg Nesterov wrote:
>
> Any reason why daemonized kthread still uses 1,1 special pids?
Actually, I guess the reason is that this was not possible before.
Now that set_special_pids uses "struct pid" we can do this.
Perhaps it is better to move the callsite to reparent_to_kthreadd()
and
Any reason why daemonized kthread still uses 1,1 special pids? This patch
sets 0,0 pids, this matches kthread_create'ed threads.
Signed-off-by: Oleg Nesterov <[EMAIL PROTECTED]>
--- PT/kernel/exit.c~3_daemonize_swapper2007-11-26 16:47:35.0
+0300
+++ PT/kernel/exit.c
Any reason why daemonized kthread still uses 1,1 special pids? This patch
sets 0,0 pids, this matches kthread_create'ed threads.
Signed-off-by: Oleg Nesterov [EMAIL PROTECTED]
--- PT/kernel/exit.c~3_daemonize_swapper2007-11-26 16:47:35.0
+0300
+++ PT/kernel/exit.c2007-11-26
On 11/26, Oleg Nesterov wrote:
Any reason why daemonized kthread still uses 1,1 special pids?
Actually, I guess the reason is that this was not possible before.
Now that set_special_pids uses struct pid we can do this.
Perhaps it is better to move the callsite to reparent_to_kthreadd()
and
Oleg Nesterov [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
Acked-by: Eric W. Biederman [EMAIL PROTECTED]
[EMAIL PROTECTED] (Eric W. Biederman) writes:
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.
Well we can't reallocate the struct pid,
8 matches
Mail list logo