Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030361AbWBPR6M (ORCPT ); Thu, 16 Feb 2006 12:58:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932545AbWBPR6M (ORCPT ); Thu, 16 Feb 2006 12:58:12 -0500 Received: from stat9.steeleye.com ([209.192.50.41]:43975 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S932340AbWBPR6K (ORCPT ); Thu, 16 Feb 2006 12:58:10 -0500 Subject: Re: Linux 2.6.16-rc3 From: James Bottomley To: Russell King Cc: Greg KH , Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org, Jens Axboe , "Brown, Len" , "David S. Miller" , linux-acpi@vger.kernel.org, linux-usb-devel@lists.sourceforge.net, "Yu, Luming" , Ben Castricum , sanjoy@mrao.cam.ac.uk, Helge Hafting , "Carlo E. Prelz" , Gerrit Bruchh?user , Nicolas.Mailhot@LaPoste.net, Jaroslav Kysela , Takashi Iwai , Patrizio Bassi , Bj?rn Nilsson , Andrey Borzenkov , "P. Christeas" , ghrt , jinhong hu , Andrew Vasquez , linux-scsi@vger.kernel.org, Benjamin LaHaise In-Reply-To: <20060216171200.GD29443@flint.arm.linux.org.uk> References: <20060212190520.244fcaec.akpm@osdl.org> <20060213203800.GC22441@kroah.com> <1139934883.14115.4.camel@mulgrave.il.steeleye.com> <1140054960.3037.5.camel@mulgrave.il.steeleye.com> <20060216171200.GD29443@flint.arm.linux.org.uk> Content-Type: text/plain Date: Thu, 16 Feb 2006 09:57:32 -0800 Message-Id: <1140112653.3178.9.camel@mulgrave.il.steeleye.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 840 Lines: 19 On Thu, 2006-02-16 at 17:12 +0000, Russell King wrote: > This is probably an idiotic question, but if there's something in the > scsi release handler can't be called in non-process context, why can't > scsi queue up the release processing via the work API itself, rather > than having to have this additional code and complexity for everyone? It's because, in order to get a guaranteed single allocation for the workqueue to execute in user context, I need to know when the release will be called. The only way to do that is to add the execute in process context directly to kref_put. James - 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/