OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH 02/14] Move alloc_pid call to copy_process
Re: [RFC][PATCH 02/14] Move alloc_pid call to copy_process [message #17923 is a reply to message #17908] Wed, 21 March 2007 07:08 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
sukadev@us.ibm.com writes:

> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
> Subject: [RFC][PATCH 02/14] Move alloc_pid call to copy_process
>
> Move alloc_pid() into copy_process(). This will help in
> code to support cloning of pid namespace.

I think this makes sense.  However if we are doing it let's
put the special case code for the init_pid in free_pid and
pass the type to alloc_pid. 

Otherwise all of the extra if look ugly in copy_process.
Putting them in alloc_pid and free_pid doesn't really get rid
of them but at least it keeps them in a very pid context.

Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Previous Topic: [RFC][PATCH 14/14] Enable cloning pid namespace
Next Topic: [RFC][PATCH 09/14] Save leaders struct pid before detach_pid()
Goto Forum:
  


Current Time: Mon Aug 25 16:12:13 GMT 2025

Total time taken to generate the page: 0.06113 seconds