Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757282AbXIEWlo (ORCPT ); Wed, 5 Sep 2007 18:41:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751226AbXIEWlh (ORCPT ); Wed, 5 Sep 2007 18:41:37 -0400 Received: from ozlabs.org ([203.10.76.45]:36762 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752942AbXIEWlg (ORCPT ); Wed, 5 Sep 2007 18:41:36 -0400 Subject: Re: [PATCH 2/2] Fix (improve) deadlock condition on module removal netfilter socket option removal From: Rusty Russell To: Jon Masters Cc: Neil Horman , adam@yggdrasil.com, jcm@jonmasters.org, kaber@trash.net, netfilter-devel@lists.netfilter.org, linux-kernel@vger.kernel.org In-Reply-To: <1189023999.12261.147.camel@jcmlaptop> References: <20070904203053.GC19083@hmsreliant.think-freely.org> <1189023999.12261.147.camel@jcmlaptop> Content-Type: text/plain Date: Thu, 06 Sep 2007 08:41:09 +1000 Message-Id: <1189032069.10802.212.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 32 On Wed, 2007-09-05 at 16:26 -0400, Jon Masters wrote: > On Tue, 2007-09-04 at 16:30 -0400, Neil Horman wrote: > > > 2nd of two patches. This patch enhances modprobe to operate like rmmod > > in non-blocking mode. It also adds a -w option to allow for explicit blocking > > operation. > > As I suspected, this patch isn't in the tree. I am going to commit it > now because it makes sense. I'm also going to sort out moving things to > kernel.org this afternoon while I'm at it - I don't want to confuse > people with kerneltools.org any more now I've got a kernel.org acc. 1) You don't want to hand the "wait" flag (ie ~O_NONBLOCK) to sub-rmmods, 2) You need to do something about this code if wait is specified: if (usecount != 0) { if (!ignore_inuse) error("Module %s is in use.\n", name); goto remove_rest; } Cheers, Rusty. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/