netdev
[Top] [All Lists]

Re: Possible race/deadlock in netdev_unregister

To: Stephen Hemminger <shemminger@xxxxxxxx>
Subject: Re: Possible race/deadlock in netdev_unregister
From: Daniele Orlandi <daniele@xxxxxxxxxxx>
Date: Sat, 29 Jan 2005 01:25:50 +0100
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050128153806.2c0fd337@dxpl.pdx.osdl.net>
References: <200501282313.30517.daniele@orlandi.com> <20050128153806.2c0fd337@dxpl.pdx.osdl.net>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.7.1
On Saturday 29 January 2005 00:38, you wrote:
>
> You are probably self-deadlocking on the netlink mutex (rtnl).
> Is your netdevice_notifier handler calling rtnl_lock?

No, I'm just setting an error on all sockets, and sk_state_change()ing them, 
nothing that might sleep, AFAIK.

Even in that case, that wouldn't explain the interaction with hotplug.

I also forgot to say that if the application exists immediately after seeing 
the error on the socket, the problem doesn't show.

Thanks anyway,
Bye!

-- 
  Daniele Orlandi

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