thread_group_cputime: move a couple of callsites outside of ->siglock
authorOleg Nesterov <oleg@redhat.com>
Mon, 17 Nov 2008 14:40:08 +0000 (15:40 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 17 Nov 2008 15:55:55 +0000 (16:55 +0100)
commit2b5fe6de58276d0b5a7c884d5dbfc300ca47db78
tree02cc368e46a795bd2c0162d278f9c5549f4e1e5a
parentce394471d13bf071939a9a0b48c64c297676d233
thread_group_cputime: move a couple of callsites outside of ->siglock

Impact: relax the locking of cpu-time accounting calls

->siglock buys nothing for thread_group_cputime() in do_sys_times() and
wait_task_zombie() (which btw takes the unrelated parent's ->siglock).

Actually I think do_sys_times() doesn't need ->siglock at all.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/exit.c
kernel/sys.c