]> git.neil.brown.name Git - history.git/commitdiff
Fix exit_notify() to actually do what the comment
authorLinus Torvalds <torvalds@home.transmeta.com>
Thu, 4 Apr 2002 12:58:58 +0000 (04:58 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 4 Apr 2002 12:58:58 +0000 (04:58 -0800)
says it should do - lock out preemption.

kernel/exit.c

index 96472474ada781fb43f49d8fa5e066ae7ad5fe1f..feb2470a602468b85d46c19e33bd39f818385f31 100644 (file)
@@ -469,12 +469,15 @@ static void exit_notify(void)
                        write_lock_irq(&tasklist_lock);
                }
        }
+
        /*
         * No need to unlock IRQs, we'll schedule() immediately
         * 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)