From c0dadb995511f7a244af3dc0ae221d626a44677c Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 15 Nov 2000 22:00:31 +0000 Subject: Don't perform witness checks in witness_enter() during a panic. --- sys/kern/kern_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_mutex.c') diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 86fa1e4..4e53766 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -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()) -- cgit v1.1