]> git.baikalelectronics.ru Git - kernel.git/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)
commit284ef7c4b02fbdfe594a307d14e9279d6f90707d
tree49e2c5b785b887ae47c599b0afd81ba304f9062a
parentc1ddfeed7e78413cb073d1ed8182a0a63d33b029
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