mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
[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>
This commit is contained in:
parent
a122b341b7
commit
aacc90944d
1 changed files with 0 additions and 2 deletions
|
@ -985,7 +985,6 @@ do_group_exit(int exit_code)
|
||||||
else if (!thread_group_empty(current)) {
|
else if (!thread_group_empty(current)) {
|
||||||
struct signal_struct *const sig = current->signal;
|
struct signal_struct *const sig = current->signal;
|
||||||
struct sighand_struct *const sighand = current->sighand;
|
struct sighand_struct *const sighand = current->sighand;
|
||||||
read_lock(&tasklist_lock);
|
|
||||||
spin_lock_irq(&sighand->siglock);
|
spin_lock_irq(&sighand->siglock);
|
||||||
if (sig->flags & SIGNAL_GROUP_EXIT)
|
if (sig->flags & SIGNAL_GROUP_EXIT)
|
||||||
/* Another thread got here before we took the lock. */
|
/* Another thread got here before we took the lock. */
|
||||||
|
@ -995,7 +994,6 @@ do_group_exit(int exit_code)
|
||||||
zap_other_threads(current);
|
zap_other_threads(current);
|
||||||
}
|
}
|
||||||
spin_unlock_irq(&sighand->siglock);
|
spin_unlock_irq(&sighand->siglock);
|
||||||
read_unlock(&tasklist_lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_exit(exit_code);
|
do_exit(exit_code);
|
||||||
|
|
Loading…
Add table
Reference in a new issue