]> git.baikalelectronics.ru Git - kernel.git/commit
pid namespaces: move alloc_pid() lower in copy_process()
authorPavel Emelyanov <xemul@openvz.org>
Fri, 19 Oct 2007 06:40:07 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:39 +0000 (11:53 -0700)
commit4e931c24bd05cc690ad243c529a2f681c142b831
tree04cdf3042ee0f593b243c6402f2ce3cacac5cc2d
parentae21115900778e4e42476620b0fd48ad9456fbb8
pid namespaces: move alloc_pid() lower in copy_process()

When we create new namespace we will need to allocate the struct pid, that
will have one extra struct upid in array, comparing to the parent.

Thus we need to know the new namespace (if any) in alloc_pid() to init this
struct upid properly, so move the alloc_pid() call lower in copy_process().

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Paul Menage <menage@google.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c