Don't perform witness checks in witness_enter() during a panic.
This commit is contained in:
parent
4b2c46fab1
commit
ecbd8e3710
@ -829,7 +829,7 @@ witness_enter(struct mtx *m, int flags, const char *file, int line)
|
||||
return;
|
||||
if (witness_dead)
|
||||
goto out;
|
||||
if (cold)
|
||||
if (cold || panicstr)
|
||||
goto out;
|
||||
|
||||
if (!mtx_legal2block())
|
||||
|
@ -829,7 +829,7 @@ witness_enter(struct mtx *m, int flags, const char *file, int line)
|
||||
return;
|
||||
if (witness_dead)
|
||||
goto out;
|
||||
if (cold)
|
||||
if (cold || panicstr)
|
||||
goto out;
|
||||
|
||||
if (!mtx_legal2block())
|
||||
|
@ -829,7 +829,7 @@ witness_enter(struct mtx *m, int flags, const char *file, int line)
|
||||
return;
|
||||
if (witness_dead)
|
||||
goto out;
|
||||
if (cold)
|
||||
if (cold || panicstr)
|
||||
goto out;
|
||||
|
||||
if (!mtx_legal2block())
|
||||
|
Loading…
x
Reference in New Issue
Block a user