Lock the sched_lock while setting TDF_INPANIC.

This commit is contained in:
John Baldwin 2003-04-17 22:29:23 +00:00
parent 27dad03c97
commit f385f7156a

View File

@ -535,7 +535,9 @@ panic(const char *fmt, ...)
}
#endif
#endif
mtx_lock_spin(&sched_lock);
td->td_flags |= TDF_INPANIC;
mtx_unlock_spin(&sched_lock);
if (!sync_on_panic)
bootopt |= RB_NOSYNC;
boot(bootopt);