From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752553AbZK0Ihc (ORCPT ); Fri, 27 Nov 2009 03:37:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751589AbZK0Ihb (ORCPT ); Fri, 27 Nov 2009 03:37:31 -0500 Received: from cantor.suse.de ([195.135.220.2]:32927 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751512AbZK0Ihb (ORCPT ); Fri, 27 Nov 2009 03:37:31 -0500 Date: Fri, 27 Nov 2009 09:37:36 +0100 Message-ID: From: Takashi Iwai To: Tejun Heo Cc: Andy Walls , Peter Ujfalusi , Stephen Rothwell , "linux-next@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Mark Brown Subject: Re: linux-next: workqueues tree build failure In-Reply-To: <4B0F3331.3070107@kernel.org> References: <20091126190050.3f9d7fef.sfr@canb.auug.org.au> <4B0E3677.6000603@kernel.org> <200911261016.58810.peter.ujfalusi@nokia.com> <4B0E467A.8080201@kernel.org> <1259239225.3062.16.camel@palomino.walls.org> <4B0F3331.3070107@kernel.org> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Fri, 27 Nov 2009 11:02:25 +0900, Tejun Heo wrote: > > Hello, > > 11/26/2009 09:40 PM, Andy Walls wrote: > >> * If you need to respond fast, wouldn't you be doing that from IRQ > >> handler or softirq? Do you need task context? > > > > I'm not sure doing things like I2C transactions in the in the top half > > of the IRQ handler is generally viable. On shared IRQ lines, wouldn't > > this hold off the interrupt for another device for too long? > > > > For example, I already ran across the case of an error path in the ahci > > disk controller driver interrupt handler holding off interrupts from the > > cx18 driver longer than the CX23418 firmware would tolerate on a shared > > interrupt line. > > Sounds like it should be using bottom half tasklet not workqueue. > Tasklet is exactly designed to handle situations like this. Is there > any reason tasklet can't be used? Right now the h/w accessing code is using mutex. I'm not sure whether the deeper part might sleep, though... Takashi