git: db7f871eea7f - stable/13 - buf: Make buf_daemon_shutdown() a no-op after a panic
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Mar 2023 15:53:22 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=db7f871eea7f29d2769e5bf67dc350d6b978b7ba
commit db7f871eea7f29d2769e5bf67dc350d6b978b7ba
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-01 15:07:56 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-13 15:53:15 +0000
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
(cherry picked from commit bcd8cd859e694bc4a4dfb6fdb8f55de3a96833b4)
---
sys/kern/vfs_bio.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 98047f161077..174a6e0b556a 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -3406,6 +3406,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);