mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Don't "implicitly order all sleep locks before spin locks" in witness
when the spin lock in question isn't -- it's the critical_enter() that KDB set. No more panic in DDB for console -> syscons -> tty -> knote operations.
This commit is contained in:
parent
42d69dd63e
commit
41f57cbc8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136304
|
@ -711,7 +711,7 @@ witness_checkorder(struct lock_object *lock, int flags, const char *file,
|
|||
* implicitly enforces a lock order of all sleep locks before
|
||||
* all spin locks.
|
||||
*/
|
||||
if (td->td_critnest != 0)
|
||||
if (td->td_critnest != 0 && !kdb_active)
|
||||
panic("blockable sleep lock (%s) %s @ %s:%d",
|
||||
class->lc_name, lock->lo_name, file, line);
|
||||
|
||||
|
|
Loading…
Reference in a new issue