From: Pavel Emelyanov Date: Fri, 19 Oct 2007 06:40:07 +0000 (-0700) Subject: pid namespaces: move alloc_pid() lower in copy_process() X-Git-Tag: v2.6.24-rc1~217 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=425fb2b4bf5dde24be4a82e9a2c344bb49ac92e4;p=pandora-kernel.git 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 Cc: Oleg Nesterov Cc: Sukadev Bhattiprolu Cc: Paul Menage Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed