teach set_special_pids() to use struct pid
Change set_special_pids() to work with struct pid, not pid_t from global name space. This again speedups and imho cleanups the code, also a preparation for the next patch. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
e4cc0a9c87
commit
8520d7c7f8
@@ -833,7 +833,7 @@ static int __init kernel_init(void * unused)
|
||||
*/
|
||||
init_pid_ns.child_reaper = current;
|
||||
|
||||
__set_special_pids(1, 1);
|
||||
__set_special_pids(task_pid(current));
|
||||
cad_pid = task_pid(current);
|
||||
|
||||
smp_prepare_cpus(setup_max_cpus);
|
||||
|
Reference in New Issue
Block a user