On Mon, Jun 26, 2017 at 11:38:35AM +0200, Martin Pieuchot wrote: > The NET_LOCK() is currently what guarantees that accesses to PF data > structures are serialized. So we can drop the KERNEL_LOCK() in the > pf_purge_thread() to reduce contention. > > While here use rwsleep(9) instead of calling NET_LOCK()/NET_UNLOCK() > for every iteration. This way the thread won't go to sleep twice per > iteration. > > ok? >
OK sashan@