diff options
author | Florian Westphal <fw@strlen.de> | 2016-08-09 12:16:09 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2016-08-10 11:23:24 +0200 |
commit | d737a5805581c6f99dad4caa9fdf80965d617d1a (patch) | |
tree | 4a41adb2c5c3ac0ea2816fa8789b828499d8fee4 /include/net/netns/xfrm.h | |
parent | xfrm: state: use rcu_deref and assign_pointer helpers (diff) | |
download | linux-d737a5805581c6f99dad4caa9fdf80965d617d1a.tar.xz linux-d737a5805581c6f99dad4caa9fdf80965d617d1a.zip |
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>
Diffstat (limited to 'include/net/netns/xfrm.h')
-rw-r--r-- | include/net/netns/xfrm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 24cd3949a9a4..1ab51d188408 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h @@ -38,9 +38,9 @@ struct netns_xfrm { * mode. Also, it can be used by ah/esp icmp error handler to find * offending SA. */ - struct hlist_head *state_bydst; - struct hlist_head *state_bysrc; - struct hlist_head *state_byspi; + struct hlist_head __rcu *state_bydst; + struct hlist_head __rcu *state_bysrc; + struct hlist_head __rcu *state_byspi; unsigned int state_hmask; unsigned int state_num; struct work_struct state_hash_work; |