OpenVZ Forum


Home » Mailing lists » Devel » [patch -mm 00/17] new namespaces and related syscalls
Re: [patch -mm 08/17] nsproxy: add hashtable [message #16975 is a reply to message #16810] Tue, 12 December 2006 07:52 Go to previous messageGo to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Cedric Le Goater <clg@fr.ibm.com> writes:

> Serge E. Hallyn wrote:
>> Well, assuming that we're using pids as identifiers, that means
>
> we can't because a process could die while the namespace is still
> referenced by an other subsystem. We need some kind of id.

Think of a session think of a process group heck think of threads
a pid is not tied to one task struct.  It is absolutely not a problem
for a namespace to do get_pid(...) when it is initialized and put_pid(...)
just before it is freed.

All of the mechanisms for using pids for something like this are already
in place.

What we don't have is a fast pid to namespace transfer. But that is just
an extra pointer in struct pid.  Really that is a trivial patch.
Giving every namespace a pid pointer in struct pid takes a little more
space then I would like but it is not a big deal.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: seems to be a flaw in cfq
Next Topic: [PATCH] compat offsets size change
Goto Forum:
  


Current Time: Sat Nov 09 05:23:40 GMT 2024

Total time taken to generate the page: 0.03345 seconds