xfrm: state: don't use lock anymore unless acquire operation is needed
authorFlorian Westphal <fw@strlen.de>
Tue, 9 Aug 2016 10:16:09 +0000 (12:16 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 10 Aug 2016 09:23:24 +0000 (11:23 +0200)
commitd737a5805581c6f99dad4caa9fdf80965d617d1a
tree4a41adb2c5c3ac0ea2816fa8789b828499d8fee4
parentc8406998b80183ef87895ab1de4dbed8bb2d53a0
xfrm: state: don't use lock anymore unless acquire operation is needed

push the lock down, after earlier patches we can rely on rcu to
make sure state struct won't go away.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/netns/xfrm.h
net/xfrm/xfrm_state.c