mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 15:35:10 -04:00
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:
parent
2a02d3dad3
commit
bcd8cd859e
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue