OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 3/5] Use task_pid() to find leader's pid
Re: [PATCH 3/5] Use task_pid() to find leader's pid [message #19381 is a reply to message #19352] Tue, 17 July 2007 13:44 Go to previous message
Oleg Nesterov is currently offline  Oleg Nesterov
Messages: 143
Registered: August 2006
Senior Member
On 07/16, sukadev@us.ibm.com wrote:
>
> Oleg Nesterov [oleg@tv-sign.ru] 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 from the active
> | namespace.
> 
> Not sure I fully understand this. A process, and by extension its 'struct
> pid' is visible in multiple namespaces and we maintain this list of
> namespaces in each 'struct pid'.
> 
> Are you suggesting having a pid_namespace with a list of all 'struct pids'
> that are visible in it ?

I thought that the plan is: if the task is visible in some namespace, it has
a separate pid_t in that namespace.

OK, the question was relly stupid, please ignore. I'll wait for other patches
to understand what's going on.

Oleg.

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [PATCH 5/5] Move alloc_pid call to copy_process
Next Topic: Re: [PATCH 5/5] Move alloc_pid call to copy_process
Goto Forum:
  


Current Time: Mon Aug 04 15:30:04 GMT 2025

Total time taken to generate the page: 1.75024 seconds