If we've panic'd already, then just bail in lockmgr rather than blocking or

possibly panic'ing again.
This commit is contained in:
John Baldwin 2001-08-10 23:29:15 +00:00
parent 2b6a0c4fcd
commit 3f085c228e

View File

@ -242,6 +242,11 @@ debuglockmgr(lkp, flags, interlkp, p, name, file, line)
mtx_unlock(interlkp);
}
if (panicstr != NULL) {
mtx_unlock(lkp->lk_interlock);
return (0);
}
extflags = (flags | lkp->lk_flags) & LK_EXTFLG_MASK;
switch (flags & LK_TYPE_MASK) {