lkml.org 
[lkml]   [2002]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch] sys_exit() threading improvements, BK-curr

the attached patch (against BK-curr) fixes the Mozilla SMP lockup in the
exit path.

Ingo

--- linux/kernel/signal.c.orig Sat Sep 14 11:25:30 2002
+++ linux/kernel/signal.c Sat Sep 14 11:42:29 2002
@@ -280,10 +284,12 @@
if (atomic_read(&sig->count) == 1 &&
leader->state == TASK_ZOMBIE) {
__remove_thread_group(tsk, sig);
+ spin_unlock(&sig->siglock);
do_notify_parent(leader, leader->exit_signal);
- } else
+ } else {
__remove_thread_group(tsk, sig);
- spin_unlock(&sig->siglock);
+ spin_unlock(&sig->siglock);
+ }
}
clear_tsk_thread_flag(tsk,TIF_SIGPENDING);
flush_sigqueue(&tsk->pending);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:2.058 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site