]> git.hungrycats.org Git - linux/commit
[PATCH] Keep interrupts enabled in exit path
authorAndrew Morton <akpm@digeo.com>
Thu, 20 Feb 2003 05:19:00 +0000 (21:19 -0800)
committerPaul Mackerras <paulus@samba.org>
Thu, 20 Feb 2003 05:19:00 +0000 (21:19 -0800)
commit776969f04b4a372e9eea8f7ddf683907613765bf
tree45fae7a66a495d6a9e051b6535aaa1a38c2afa6b
parent3b6244e1374384311d6b262aa522a0f2ae7bd041
[PATCH] Keep interrupts enabled in exit path

We are leaving local interrupts disabled coming out of exit_notify().

But we are about to call wait_task_inactive() which spins, waiting for
another CPU to end a task.  If that CPU has issued smp_call_function() to
this CPU, deadlock.

So the patch enables interrupts again before returning from exit_notify().

Also, exit_notify() returns with preemption disabled, so there is no
need to perform another preempt_disable() in do_exit().
kernel/exit.c