freebsd-skq/sys/netpfil
Kristof Provost 2a57d24bd1 pf: Fix incorrect rw_sleep() in pf_unload()
When we unload we don't hold the pf_rules_lock, so we cannot call rw_sleep()
with it, because it would release a lock we do not hold. There's no need for the
lock either, so we can just tsleep().

While here also make the same change in pf_purge_thread(), because it explicitly
takes the lock before rw_sleep() and then immediately releases it afterwards.
2017-03-12 05:42:57 +00:00
..
ipfw o Typo in the comment fixed. 2017-03-09 09:54:23 +00:00
pf pf: Fix incorrect rw_sleep() in pf_unload() 2017-03-12 05:42:57 +00:00