aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-03-01 15:07:56 +0000
committerMark Johnston <markj@FreeBSD.org>2023-03-01 15:15:54 +0000
commitbcd8cd859e694bc4a4dfb6fdb8f55de3a96833b4 (patch)
tree88b32effd2643763f4a9014d76ec7373bd2fc55d
parent2a02d3dad391694516c82e6b7359bcac7d0327d0 (diff)
downloadsrc-bcd8cd859e694bc4a4dfb6fdb8f55de3a96833b4.tar.gz
src-bcd8cd859e694bc4a4dfb6fdb8f55de3a96833b4.zip
buf: Make buf_daemon_shutdown() a no-op after a panic
As in commit 9d7cc536e261a7, there is no need to do anything in this context. MFC after: 1 week
-rw-r--r--sys/kern/vfs_bio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index b40ee382c42a..f1089964a041 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3419,6 +3419,9 @@ buf_daemon_shutdown(void *arg __unused, int howto __unused)
{
int error;
+ if (KERNEL_PANICKED())
+ return;
+
mtx_lock(&bdlock);
bd_shutdown = true;
wakeup(&bd_request);