Deprecate find_task_by_pid()
authorPavel Emelyanov <xemul@openvz.org>
Wed, 30 Apr 2008 07:54:24 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:48 +0000 (08:29 -0700)
commit5cd204550b1a006f2b0c986b0e0f53220ebfd391
treeee0f5e042072d4d2f4a3c6cd6e3a8b60676868ae
parentcb41d6d068716b2b3666925da34d3d7e658bf4f3
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>
Documentation/feature-removal-schedule.txt
include/linux/sched.h
init/main.c
kernel/kthread.c
kernel/pid.c