diff options
author | Florian Westphal <fw@strlen.de> | 2016-08-11 15:17:59 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2016-08-12 08:07:12 +0200 |
commit | 9d0380df6217e8dd014118fa1c99dda9974f3613 (patch) | |
tree | d3cb885fa28fcde230a154b465bb69bd22f9a29c /include | |
parent | xfrm: policy: don't acquire policy lock in xfrm_spd_getinfo (diff) | |
download | linux-9d0380df6217e8dd014118fa1c99dda9974f3613.tar.xz linux-9d0380df6217e8dd014118fa1c99dda9974f3613.zip |
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')
-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 */ |