Commit 94f5af8b authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Fix exit_notify() to actually do what the comment

says it should do - lock out preemption.
parent 2fd2c043
...@@ -469,12 +469,15 @@ static void exit_notify(void) ...@@ -469,12 +469,15 @@ static void exit_notify(void)
write_lock_irq(&tasklist_lock); write_lock_irq(&tasklist_lock);
} }
} }
/* /*
* No need to unlock IRQs, we'll schedule() immediately * No need to unlock IRQs, we'll schedule() immediately
* anyway. In the preemption case this also makes it * anyway. In the preemption case this also makes it
* impossible for the task to get runnable again. * impossible for the task to get runnable again (thus
* the "_raw_" unlock - to make sure we don't try to
* preempt here).
*/ */
write_unlock(&tasklist_lock); _raw_write_unlock(&tasklist_lock);
} }
NORET_TYPE void do_exit(long code) NORET_TYPE void do_exit(long code)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment