Re: [PATCH] sys_setpgid: simplify pid/ns interaction

2007-11-26 Thread Pavel Emelyanov
Oleg Nesterov wrote: > 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. >

[PATCH] sys_setpgid: simplify pid/ns interaction

2007-11-25 Thread Oleg Nesterov
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 <[EMA