]> err.no Git - linux-2.6/commit
sys_setpgid(): simplify pid/ns interaction
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 8 Feb 2008 12:19:08 +0000 (04:19 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:27 +0000 (09:22 -0800)
commit4e021306cff4277764a42065214fc73f2d26be4b
tree49e2c5b785b887ae47c599b0afd81ba304f9062a
parentc543f1ee08ea6c2176dbdc47df0d0f6357c88713
sys_setpgid(): simplify pid/ns interaction

sys_setpgid() does unneeded conversions from pid_t to "struct pid" and vice
versa.  Use "struct pid" more consistently.  Saves one find_vpid() and
eliminates the explicit usage of ->nsproxy->pid_ns.  Imho, cleanups the
code.

Also use the same_thread_group() helper.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: "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/sys.c