diff options
author | Florian Westphal <fw@strlen.de> | 2016-08-11 16:17:59 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2016-08-12 09:07:12 +0300 |
commit | 9d0380df6217e8dd014118fa1c99dda9974f3613 (patch) | |
tree | d3cb885fa28fcde230a154b465bb69bd22f9a29c /include/net/netns/xfrm.h | |
parent | d5b8f86dc7200d16e48bb3a6aaac29c0cdf621c9 (diff) | |
download | linux-9d0380df6217e8dd014118fa1c99dda9974f3613.tar.xz |
xfrm: policy: convert policy_lock to spinlock
After earlier patches conversions all spots acquire the writer lock and
we can now convert this to a normal spinlock.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 3ab828a97e68..177ed444d7b2 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h @@ -73,7 +73,7 @@ struct netns_xfrm { struct dst_ops xfrm6_dst_ops; #endif spinlock_t xfrm_state_lock; - rwlock_t xfrm_policy_lock; + spinlock_t xfrm_policy_lock; struct mutex xfrm_cfg_mutex; /* flow cache part */ |