aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-08-09 12:16:05 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2016-08-10 11:23:23 +0200
commit02efdff7e209859c2755ebe93b3bd0e3d40123ab (patch)
treed7008910ee8bc52787e18eda78733c31ea44ba39 /tools/perf/scripts/python
parentxfrm: state: use hlist_for_each_entry_rcu helper (diff)
downloadlinux-02efdff7e209859c2755ebe93b3bd0e3d40123ab.tar.gz
linux-02efdff7e209859c2755ebe93b3bd0e3d40123ab.zip
xfrm: state: use atomic_inc_not_zero to increment refcount
Once xfrm_state_lookup_byaddr no longer acquires the state lock another cpu might be freeing the state entry at the same time. To detect this we use atomic_inc_not_zero, we then signal -EAGAIN to caller in case our result was stale. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions