-/* $OpenBSD: pf.c,v 1.1030 2017/05/28 16:55:54 bluhm Exp $ */
+/* $OpenBSD: pf.c,v 1.1031 2017/05/29 14:18:32 mpi Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
}
RB_REMOVE(pf_state_tree_id, &tree_id, cur);
#if NPFLOW > 0
- if (cur->state_flags & PFSTATE_PFLOW) {
- /* XXXSMP breaks atomicity */
- rw_exit_write(&netlock);
+ if (cur->state_flags & PFSTATE_PFLOW)
export_pflow(cur);
- rw_enter_write(&netlock);
- }
#endif /* NPFLOW > 0 */
#if NPFSYNC > 0
pfsync_delete_state(cur);