When panic()'ing because of recursion on a non-recursive mutex, print

out the location it was initially locked.

Ok'd by: jake
This commit is contained in:
Alfred Perlstein 2001-04-30 01:01:52 +00:00
parent e6af1080c2
commit aad7597ce0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76142

View File

@ -483,9 +483,9 @@ witness_lock(struct lock_object *lock, int flags, const char *file, int line)
if ((lock->lo_flags & LO_RECURSED) != 0) {
if ((lock->lo_flags & LO_RECURSABLE) == 0)
panic(
"%s: recursed on non-recursive lock (%s) %s @ %s:%d",
"%s: recursed on non-recursive lock (%s) %s @ %s:%d first aquired @ %s:%d",
__func__, class->lc_name, lock->lo_name, file,
line);
line, lock->lo_file, lock->lo_line);
return;
}