[PATCH] taskstats: cleanup do_exit() path
authorOleg Nesterov <oleg@tv-sign.ru>
Thu, 7 Dec 2006 04:36:51 +0000 (20:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:34 +0000 (08:39 -0800)
commit115085ea0794c0f339be8f9d25505c7f9861d824
tree0b69f20ab8ab53702a4c94c11927e60fa058b509
parent128fb95650b3273a8dc9ba5514b6fe7db8ea30bf
[PATCH] taskstats: cleanup do_exit() path

do_exit:
taskstats_exit_alloc()
...
taskstats_exit_send()
taskstats_exit_free()

I think this is not good, let it be a single function exported to the core
kernel, taskstats_exit(), which does alloc + send + free itself.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Jay Lan <jlan@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/taskstats_kern.h
kernel/exit.c
kernel/taskstats.c