summaryrefslogtreecommitdiffstats
path: root/kernel/kthread.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-04-30 09:54:23 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 17:29:48 +0200
commitcb41d6d068716b2b3666925da34d3d7e658bf4f3 (patch)
tree75926ace2cf9793a6b3809da2d6fb5813b1c9068 /kernel/kthread.c
parentfree_pidmap: turn it into free_pidmap(struct upid *) (diff)
downloadlinux-cb41d6d068716b2b3666925da34d3d7e658bf4f3.tar.xz
linux-cb41d6d068716b2b3666925da34d3d7e658bf4f3.zip
Use find_task_by_vpid in taskstats
The pid to lookup a task by is passed inside taskstats code via genetlink message. Since netlink packets are now processed in the context of the sending task, this is correct to lookup the task with find_task_by_vpid() here. Besides, I fix the call to fill_pid() from taskstats_exit(), since the tsk->pid is not required in fill_pid() in this case, and the pid field on task_struct is going to be deprecated as well. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Balbir Singh <balbir@in.ibm.com> Cc: Jay Lan <jlan@engr.sgi.com> Cc: Jonathan Lim <jlim@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kthread.c')
0 files changed, 0 insertions, 0 deletions