From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: netlink circular locking dependency Date: Tue, 17 Jun 2008 15:07:44 +0200 Message-ID: <4857B720.1070302@trash.net> References: <20080616213417.GA14988@ami.dom.local> <4856DF91.30606@trash.net> <1213667154.21932.47.camel@violet.holtmann.net> <4857B30B.8020809@trash.net> <20080617130910.GA4632@ff.dom.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcel Holtmann , netdev@vger.kernel.org, Ingo Molnar , Thomas Graf To: Jarek Poplawski Return-path: Received: from stinky.trash.net ([213.144.137.162]:63708 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756178AbYFQNHu (ORCPT ); Tue, 17 Jun 2008 09:07:50 -0400 In-Reply-To: <20080617130910.GA4632@ff.dom.local> Sender: netdev-owner@vger.kernel.org List-ID: Jarek Poplawski wrote: > On Tue, Jun 17, 2008 at 02:50:19PM +0200, Patrick McHardy wrote: > ... >> Thanks for testing. Unfortunately the module unload races look >> more complicated to fix and I'm busy with other things, so it >> would great if someone else could fix this. > > Patrick, I wonder if simply adding an additional mutex e.g. > genl_lock_table() around all the rest (after your patch) genl_locks > could be enough until some major rework. This should prevent any > new races and there are no lockups, I guess? Not sure I understand you correctly, where exactly would this mutex be taken?