Re: [patch] sys_exit() threading improvements, BK-curr

From: Ingo Molnar (mingo@elte.hu)
Date: Sat Sep 14 2002 - 05:27:27 EST


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/



This archive was generated by hypermail 2b29 : Sun Sep 15 2002 - 22:00:36 EST