When running with a kernel compiled with DEBUG_LOCKS, before
panic'ing for recusing on a non-recursive lock, print out the kernel stack where the lock was originally acquired.
This commit is contained in:
parent
09bae0a023
commit
9a79b99003
@ -732,6 +732,7 @@ lockmgr_xlock_hard(struct lock *lk, u_int flags, struct lock_object *ilk,
|
||||
class = LOCK_CLASS(ilk);
|
||||
class->lc_unlock(ilk);
|
||||
}
|
||||
STACK_PRINT(lk);
|
||||
panic("%s: recursing on non recursive lockmgr %p "
|
||||
"@ %s:%d\n", __func__, lk, file, line);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user