aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-08-11 09:17:59 -0400
committerSteffen Klassert <steffen.klassert@secunet.com>2016-08-12 02:07:12 -0400
commit9d0380df6217e8dd014118fa1c99dda9974f3613 (patch)
treed3cb885fa28fcde230a154b465bb69bd22f9a29c /include/net/netns
parentd5b8f86dc7200d16e48bb3a6aaac29c0cdf621c9 (diff)
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')
-rw-r--r--include/net/netns/xfrm.h2
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 {
73 struct dst_ops xfrm6_dst_ops; 73 struct dst_ops xfrm6_dst_ops;
74#endif 74#endif
75 spinlock_t xfrm_state_lock; 75 spinlock_t xfrm_state_lock;
76 rwlock_t xfrm_policy_lock; 76 spinlock_t xfrm_policy_lock;
77 struct mutex xfrm_cfg_mutex; 77 struct mutex xfrm_cfg_mutex;
78 78
79 /* flow cache part */ 79 /* flow cache part */