mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
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:
parent
e6af1080c2
commit
aad7597ce0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76142
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user