Lock the sched_lock while setting TDF_INPANIC.
This commit is contained in:
parent
27dad03c97
commit
f385f7156a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user