pf: Do not lose the VNET lock when ending the purge thread

When the pf_purge_thread() exits it must make sure to release the
VNET_LIST_RLOCK it still holds.
kproc_exit() does not return.
This commit is contained in:
Kristof Provost 2017-03-12 05:00:04 +00:00
parent 8368415056
commit f618201314
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315131

View File

@ -1440,6 +1440,7 @@ pf_purge_thread(void *unused __unused)
if (pf_end_threads) {
pf_end_threads++;
wakeup(pf_purge_thread);
VNET_LIST_RUNLOCK();
kproc_exit(0);
}