]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfrm: state: use rcu_deref and assign_pointer helpers
authorFlorian Westphal <fw@strlen.de>
Tue, 9 Aug 2016 10:16:08 +0000 (12:16 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 10 Aug 2016 09:23:24 +0000 (11:23 +0200)
commitc8406998b80183ef87895ab1de4dbed8bb2d53a0
tree4b6c613e08a0ff3d6a93393724d6d45c40c7c958
parentb65e3d7be06fd8ff5236439254f338fe1a8d4bbd
xfrm: state: use rcu_deref and assign_pointer helpers

Before xfrm_state_find() can use rcu_read_lock instead of xfrm_state_lock
we need to switch users of the hash table to assign/obtain the pointers
with the appropriate rcu helpers.

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