]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit425fb2b4bf5dde24be4a82e9a2c344bb49ac92e4
tree04cdf3042ee0f593b243c6402f2ce3cacac5cc2d
parent198fe21b0a17fe9c68cb519ecc566534b04f122b
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