Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270782AbTGPNEX (ORCPT ); Wed, 16 Jul 2003 09:04:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270803AbTGPNEX (ORCPT ); Wed, 16 Jul 2003 09:04:23 -0400 Received: from pc2-cwma1-4-cust86.swan.cable.ntl.com ([213.105.254.86]:19657 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S270782AbTGPNEW (ORCPT ); Wed, 16 Jul 2003 09:04:22 -0400 Subject: Re: [PATCH] AHA152x driver hangs on PCMCIA card eject, kernel 2.4.22-pre6 From: Alan Cox To: "Bhavesh P. Davda" Cc: Linux Kernel Mailing List , fischer@norbit.de, dahinds@users.sourceforge.net, Marcelo Tosatti In-Reply-To: <01db01c34b1b$fde04740$6e260987@rnd.avaya.com> References: <01db01c34b1b$fde04740$6e260987@rnd.avaya.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Message-Id: <1058361370.6633.6.camel@dhcp22.swansea.linux.org.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 16 Jul 2003 14:16:10 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 754 Lines: 15 On Maw, 2003-07-15 at 22:56, Bhavesh P. Davda wrote: > 2. A change to the aha152x_cs stub driver to not use the SCSI error-handling > thread code. The aha152x_cs driver calls scsi_unregister_module() as a > queued timer task when it gets a CS_EVENT_CARD_REMOVAL event, which causes > scsi_unregister_host() to do a down() on a semaphore, calling schedule(), > when executing the timer_bh for the timer. Right - scsi_unregister should not be called on a timer event, instead it needs to kick off a task queue - 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/