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:
Brian Feldman 2004-10-09 08:16:37 +00:00
parent 42d69dd63e
commit 41f57cbc8d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136304

View file

@ -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);