buf: Make buf_daemon_shutdown() a no-op after a panic

As in commit 9d7cc536e2, there is no need to do anything in this
context.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2023-03-01 10:07:56 -05:00
parent 2a02d3dad3
commit bcd8cd859e

View File

@ -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);