Subject: Re: [RFC 2/9] ipv6: sr: add code base for control plane support of SR-IPv6

From: Stephen Hemminger <[email-masked]>
Date: Thu, 1 Sep 2016 10:15:02 -0700

On Thu, 1 Sep 2016 15:25:14 +0200
David Lebrun <[email-masked]> wrote:

> On 08/31/2016 07:10 PM, Stephen Hemminger wrote:
> > Since these are for control operations why a mutex?  
> 
> I am not sure to understand the question. The spinlock is used on the
> RCU write side of the namespace-wide parameters to prevent concurrent
> writes.
> 
> David
> 

If this lock is only being acquired in user context, then use a mutex
instead.