From: Christoph Lameter Add some comments to release_thread to indicate what is going on with sys_times. Signed-off-by: Andrew Morton --- kernel/exit.c | 5 +++++ 1 files changed, 5 insertions(+) diff -puN kernel/exit.c~optimize-sys_times-for-a-single-thread-process-update kernel/exit.c --- 25/kernel/exit.c~optimize-sys_times-for-a-single-thread-process-update Wed May 18 15:33:03 2005 +++ 25-akpm/kernel/exit.c Wed May 18 15:33:03 2005 @@ -72,6 +72,11 @@ repeat: BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children)); __exit_signal(p); __exit_sighand(p); + /* + * Note that the fastpath in sys_times depends on __exit_signal having + * updated the counters before a task is removed from the tasklist of + * the process by __unhash_process. + */ __unhash_process(p); /* _