mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
khelp: suppress useless warning message on shutdown
If a module (e.g. the ertt hhook for TCP) can't clean up at
shutdown, there is nothing to be done about it. In the ertt case,
cleanup is just shutting down a UMA zone, which doesn't need to be
done. Suppress EBUSY warnings on shutdown.
PR: 271677
Reviewed by: tuexen, imp
Differential Revision: https://reviews.freebsd.org/D42650
(cherry picked from commit 415c1c748d)
This commit is contained in:
parent
94bddd2ab7
commit
3569e21f07
1 changed files with 1 additions and 1 deletions
|
|
@ -357,7 +357,7 @@ khelp_modevent(module_t mod, int event_type, void *data)
|
|||
} else if (error == ENOENT)
|
||||
/* Do nothing and allow unload if helper not in list. */
|
||||
error = 0;
|
||||
else if (error == EBUSY)
|
||||
else if (error == EBUSY && event_type != MOD_SHUTDOWN)
|
||||
printf("Khelp module \"%s\" can't unload until its "
|
||||
"refcount drops from %d to 0.\n", kmd->name,
|
||||
kmd->helper->h_refcount);
|
||||
|
|
|
|||
Loading…
Reference in a new issue