summaryrefslogtreecommitdiff
path: root/include/net/nfc
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-01-05 13:23:58 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2017-01-06 08:44:56 +0100
commitb3b73b8e6df685ba61476b256f98eff1d650c199 (patch)
tree3785a332fdcb2995299e0c8bc9a80458ba7ec747 /include/net/nfc
parent1365e547c6bb6b6b137bc40a189675503baa037b (diff)
xfrm: state: do not acquire lock in get_mtu helpers
Once flow cache gets removed the mtu initialisation happens for every skb that gets an xfrm attached, so this lock starts to show up in perf. It is not obvious why this lock is required -- the caller holds reference on the state struct, type->destructor is only called from the state gc worker (all state structs on gc list must have refcount 0). xfrm_init_state already has been called (else private data accessed by type->get_mtu() would not be set up). So just remove the lock -- the race on the state (DEAD?) doesn't matter (could change right after dropping the lock too). Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/nfc')
0 files changed, 0 insertions, 0 deletions