Received: with ECARTIS (v1.0.0; list netdev); Fri, 28 Jan 2005 16:26:02 -0800 (PST) Received: from relay3.uli.it (relay3.uli.it [62.212.0.49]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j0T0PvV3015650 for ; Fri, 28 Jan 2005 16:25:57 -0800 Received: from nabla.orlandi.com (nabla.orlandi.com [62.212.12.10]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by greg.uli.it (Postfix) with ESMTP id AC97D965B; Sat, 29 Jan 2005 01:25:51 +0100 (CET) From: Daniele Orlandi To: Stephen Hemminger Subject: Re: Possible race/deadlock in netdev_unregister Date: Sat, 29 Jan 2005 01:25:50 +0100 User-Agent: KMail/1.7.1 References: <200501282313.30517.daniele@orlandi.com> <20050128153806.2c0fd337@dxpl.pdx.osdl.net> In-Reply-To: <20050128153806.2c0fd337@dxpl.pdx.osdl.net> Cc: netdev@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501290125.51185.daniele@orlandi.com> X-Virus-Scanned: ClamAV 0.80/650/Sun Jan 2 19:00:02 2005 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 984 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: daniele@orlandi.com Precedence: bulk X-list: netdev Content-Length: 527 Lines: 18 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