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:
Kirk McKusick 2020-04-09 23:42:13 +00:00
parent 09bae0a023
commit 9a79b99003
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359759

View File

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