Date: Sun, 12 Mar 2017 05:00:04 +0000 (UTC) From: Kristof Provost <kp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315131 - head/sys/netpfil/pf Message-ID: <201703120500.v2C504fH055295@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703120500.v2C504fH055295>