summaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-08-11 15:17:59 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2016-08-12 08:07:12 +0200
commit9d0380df6217e8dd014118fa1c99dda9974f3613 (patch)
treed3cb885fa28fcde230a154b465bb69bd22f9a29c /include/net/netns
parentd5b8f86dc7200d16e48bb3a6aaac29c0cdf621c9 (diff)
downloadop-kernel-dev-9d0380df6217e8dd014118fa1c99dda9974f3613.zip
op-kernel-dev-9d0380df6217e8dd014118fa1c99dda9974f3613.tar.gz
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 3ab828a..177ed44 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 */
OpenPOWER on IntegriCloud