svn commit: r315131 - head/sys/netpfil/pf
Kristof Provost
kp at FreeBSD.org
Sun Mar 12 05:00:05 UTC 2017
Author: kp
Date: Sun Mar 12 05:00:04 2017
New Revision: 315131
URL: https://svnweb.freebsd.org/changeset/base/315131
Log:
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.
Modified:
head/sys/netpfil/pf/pf.c
Modified: head/sys/netpfil/pf/pf.c
==============================================================================
--- head/sys/netpfil/pf/pf.c Sun Mar 12 04:59:02 2017 (r315130)
+++ head/sys/netpfil/pf/pf.c Sun Mar 12 05:00:04 2017 (r315131)
@@ -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);
}
More information about the svn-src-all
mailing list