mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Emit a traceback when witness_trace is set and witness_warn() is
called and triggers (typically caused by sleeping with a non-sleepable lock). Reviewed by: jhb
This commit is contained in:
parent
150514c0eb
commit
12e9993f65
1 changed files with 2 additions and 0 deletions
|
|
@ -1150,6 +1150,8 @@ witness_warn(int flags, struct lock_object *lock, const char *fmt, ...)
|
|||
#ifdef DDB
|
||||
else if (witness_ddb && n)
|
||||
Debugger(__func__);
|
||||
else if (witness_trace && n)
|
||||
backtrace();
|
||||
#endif
|
||||
return (n);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue