[PATCH] do_group_exit: don't take tasklist_lock

do_group_exit() takes tasklist_lock for zap_other_threads(), this is unneeded
now.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Oleg Nesterov and committed by
Linus Torvalds
aacc9094 a122b341

-2
-2
kernel/exit.c
··· 985 985 else if (!thread_group_empty(current)) { 986 986 struct signal_struct *const sig = current->signal; 987 987 struct sighand_struct *const sighand = current->sighand; 988 - read_lock(&tasklist_lock); 989 988 spin_lock_irq(&sighand->siglock); 990 989 if (sig->flags & SIGNAL_GROUP_EXIT) 991 990 /* Another thread got here before we took the lock. */ ··· 994 995 zap_other_threads(current); 995 996 } 996 997 spin_unlock_irq(&sighand->siglock); 997 - read_unlock(&tasklist_lock); 998 998 } 999 999 1000 1000 do_exit(exit_code);