logo       

Re: [PATCH] post-sysfs netdev cleanup: msg#00343

Subject: Re: [PATCH] post-sysfs netdev cleanup
On Sun, 25 May 2003 19:24:17 -0700 (PDT)
"David S. Miller" <davem@xxxxxxxxxx> wrote:

>    From: Stephen Hemminger <shemminger@xxxxxxxx>
>    Date: Fri, 23 May 2003 16:47:35 -0700
> 
>    Seems like a good idea too.
>    
> Ok, great.
> 
> Stephen, I think we need to find a way to put the device
> registration call outside of the RTNL semaphore.  I removed
> in the unregister case, but to be complete we have to push it out in
> the register path too.
> 
> The reason for all of these issues is that link_watch grabs the RTNL
> semaphore, and this runs via keventd.  Thus, trying to invoke any
> usermode helper (/sbin/hotplug etc.) while holding the RTNL semaphore
> can deadlock.

There needs to be some locking in the registration path doesn't there
to prevent two calls to register the same name and other possible conflicts.
So do you want to use dev_base lock or some other locking?




<Prev in Thread] Current Thread [Next in Thread>