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:
alfred 2004-03-23 00:32:27 +00:00
parent 0a9ac6cd4f
commit 0dc830d1c6

View File

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