Re: [PATCH ipsec-next 8/8] xfrm: policy: convert policy_lock to spinlock

2016-08-24 Thread Florian Westphal
Steffen Klassert wrote: > On Thu, Aug 11, 2016 at 03:17:59PM +0200, Florian Westphal wrote: > > @@ -972,14 +972,14 @@ int xfrm_policy_flush(struct net *net, u8 type, bool > > task_valid) > > if (pol->type != type) > > continue; > >

Re: [PATCH ipsec-next 8/8] xfrm: policy: convert policy_lock to spinlock

2016-08-24 Thread Steffen Klassert
On Thu, Aug 11, 2016 at 03:17:59PM +0200, Florian Westphal wrote: > @@ -972,14 +972,14 @@ int xfrm_policy_flush(struct net *net, u8 type, bool > task_valid) > if (pol->type != type) > continue; > __xfrm_policy_unlink(pol, di

[PATCH ipsec-next 8/8] xfrm: policy: convert policy_lock to spinlock

2016-08-11 Thread Florian Westphal
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 --- include/net/netns/xfrm.h | 2 +- net/xfrm/xfrm_policy.c | 68 2 files changed, 35 insertio