Deprecate find_task_by_pid()
There are some places that are known to operate on tasks' global pids only: * the rest_init() call (called on boot) * the kgdb's getthread * the create_kthread() (since the kthread is run in init ns) So use the find_task_by_pid_ns(..., &init_pid_ns) there and schedule the find_task_by_pid for removal. [sukadev@us.ibm.com: Fix warning in kernel/pid.c] Signed-off-by:Pavel Emelyanov <xemul@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by:
Sukadev Bhattiprolu <sukadev@us.ibm.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/feature-removal-schedule.txt 18 additions, 0 deletionsDocumentation/feature-removal-schedule.txt
- include/linux/sched.h 4 additions, 1 deletioninclude/linux/sched.h
- init/main.c 1 addition, 1 deletioninit/main.c
- kernel/kthread.c 1 addition, 1 deletionkernel/kthread.c
- kernel/pid.c 0 additions, 6 deletionskernel/pid.c
Loading
Please register or sign in to comment