lkml.org 
[lkml]   [2002]   [Sep]   [14]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 14 Sep 2002 12:27:27 +0200 (CEST)
FromIngo Molnar <>
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 12:28    [from the cache]
©2003-2008