Re: [PATCH 3/5] Use task_pid() to find leader's pid

2007-07-17 Thread Oleg Nesterov
On 07/16, [EMAIL PROTECTED] wrote: > > Oleg Nesterov [EMAIL PROTECTED] wrote: > | > | Stupid question: why do we need to put the pid namespace into the struct > | pid? Isn't it better if the user of the struct pid should know its ns? > | For example, if /proc does put_pid(), that pid should be fro

Re: [PATCH 3/5] Use task_pid() to find leader's pid

2007-07-16 Thread sukadev
it ? | | Sukadev, could you cc me if you do that kind of changes? Sure - I will. --- Subject: [PATCH 3/5] Use task_pid() to find leader's pid From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Use task_pid() to get leader's 'struct pid' and avoid the find_pid(). Signe

Re: [PATCH 3/5] Use task_pid() to find leader's pid

2007-07-15 Thread Oleg Nesterov
Sukadev Bhattiprolu wrote: > > Use task_pid() to get leader's pid since find_pid() cannot be used > after detach_pid(). See comments in the code below for more details. > > ... > > + * Note: With multiple pid namespaces, active pid namespace of > + * a process is sto

[PATCH 3/5] Use task_pid() to find leader's pid

2007-07-14 Thread sukadev
Subject: [PATCH 3/5] Use task_pid() to find leader's pid From: Sukadev Bhattiprolu <[EMAIL PROTECTED]> Use task_pid() to get leader's pid since find_pid() cannot be used after detach_pid(). See comments in the code below for more details. Signed-off-by: Sukadev Bhattiprolu &