OpenVZ Forum


Home » Mailing lists » Devel » Re: [RFC][PATCH] Add child reaper to struct pspace
Re: [RFC][PATCH] Add child reaper to struct pspace [message #6245 is a reply to message #6138] Tue, 12 September 2006 14:41 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Eric W. Biederman wrote:
> Kirill Korotaev <dev@sw.ru> writes:
>
>
>>>I guess we need to maintain a list of task_structs in the pspace and walk
>>>that list. Will work on that as a separate patch.
>>
>>wait. we either need to have a list of _pids_ or it
>>should be called task_namespace, not pid, since we are adding more
>>code related to tasks.
>
>
> There will be a way to iterate through all of the pids.
>
> It will probably be through a linked list of struct pid, but
> it may be an in order traversal of some pid related data structure.
>
> I was hoping for a moment I might be able to only implement one
> struct pid, but I need some method to perform a reverse lookup
> from struct pid to a (struct pid_namespace, pid_t) pair to
> properly implement pid_nr(). A linked list of struct pid entries
> is the obvious implementation.
I guess there will be a need of list of tasks... not of pids only...
many of loops like do_each_thread()/while_each_thread() has nothing to do with pids
and should be narrowed down to loop through the container.

Does this logic belong to pid_ns? if yes, then it definetely should be called
task_ns.

Kirill
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Patch05/05]: Containers: Over the memory limit handler
Next Topic: Re: [RFC][PATCH 1/2] add user namespace [try #2]
Goto Forum:
  


Current Time: Mon Aug 25 23:03:16 GMT 2025

Total time taken to generate the page: 0.09125 seconds