aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorFlorian Westphal <[email protected]>2016-08-11 15:17:55 +0200
committerSteffen Klassert <[email protected]>2016-08-12 08:07:11 +0200
commite37cc8ade5afaf082f804c6d18eb23377146bec4 (patch)
treec9e1bf67bfedc04fb6e0b6840bd280198c300549 /tools/perf/scripts/python/net_dropmonitor.py
parent30846090a746edfdb230deadd638cfa96f7b8c91 (diff)
xfrm: policy: use atomic_inc_not_zero in rcu section
If we don't hold the policy lock anymore the refcnt might already be 0, i.e. policy struct is about to be free'd. Switch to atomic_inc_not_zero to avoid this. On removal policies are already unlinked from the tables (lists) before the last _put occurs so we are not supposed to find the same 'dead' entry on the next loop, so its safe to just repeat the lookup. Signed-off-by: Florian Westphal <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions