[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160824113043.GA7905@breakpoint.cc>
Date: Wed, 24 Aug 2016 13:30:43 +0200
From: Florian Westphal <fw@...len.de>
To: Steffen Klassert <steffen.klassert@...unet.com>
Cc: Florian Westphal <fw@...len.de>, netdev@...r.kernel.org
Subject: Re: [PATCH ipsec-next 8/8] xfrm: policy: convert policy_lock to
spinlock
Steffen Klassert <steffen.klassert@...unet.com> 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;
> > __xfrm_policy_unlink(pol, dir);
> > - write_unlock_bh(&net->xfrm.xfrm_policy_lock);
> > + spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
> > cnt++;
> >
> > xfrm_audit_policy_delete(pol, 1, task_valid);
> >
> > xfrm_policy_kill(pol);
> >
> > - write_lock_bh(&net->xfrm.xfrm_policy_lock);
> > + spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
>
> I've just noticed that you accidentally replaced write_lock_bh
> with spin_unlock_bh here.
Sorry about this, thanks for fixing this up.
Powered by blists - more mailing lists