commit | ae33786f73a7ce5b15ce29e8f342e43606385cef | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Thu Aug 11 15:17:57 2016 +0200 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Fri Aug 12 08:07:12 2016 +0200 |
tree | 93f389908cdcf2be4bce5ef90e322f7a4f19c394 | |
parent | a7c44247f704e385c77579d65c6ee6d002832529 [diff] |
xfrm: policy: only use rcu in xfrm_sk_policy_lookup Don't acquire the readlock anymore and rely on rcu alone. In case writer on other CPU changed policy at the wrong moment (after we obtained sk policy pointer but before we could obtain the reference) just repeat the lookup. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>