diff options
author | jhb <jhb@FreeBSD.org> | 2000-11-15 22:00:31 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-11-15 22:00:31 +0000 |
commit | c0dadb995511f7a244af3dc0ae221d626a44677c (patch) | |
tree | ac45e0b4333f7fe44b2fa6bb1fd6e010bbbd989b /sys | |
parent | fee8891473fd70f0497a9a7365c92c997835f6a6 (diff) | |
download | FreeBSD-src-c0dadb995511f7a244af3dc0ae221d626a44677c.zip FreeBSD-src-c0dadb995511f7a244af3dc0ae221d626a44677c.tar.gz |
Don't perform witness checks in witness_enter() during a panic.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_mutex.c | 2 | ||||
-rw-r--r-- | sys/kern/subr_turnstile.c | 2 | ||||
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
3 files changed, 3 insertions, 3 deletions
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()) diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c index 86fa1e4..4e53766 100644 --- a/sys/kern/subr_turnstile.c +++ b/sys/kern/subr_turnstile.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()) diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 86fa1e4..4e53766 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.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()) |