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
0a9ac6cd4f
commit
0dc830d1c6
@ -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 New Issue
Block a user