Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932144AbVLGD2b (ORCPT ); Tue, 6 Dec 2005 22:28:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964814AbVLGD2b (ORCPT ); Tue, 6 Dec 2005 22:28:31 -0500 Received: from mexforward.lss.emc.com ([168.159.213.200]:25752 "EHLO mexforward.lss.emc.com") by vger.kernel.org with ESMTP id S932144AbVLGD2a (ORCPT ); Tue, 6 Dec 2005 22:28:30 -0500 Message-ID: From: "goggin, edward" To: "'James Bottomley'" , "goggin, edward" Cc: "'Andrew Morton'" , Wu Fengguang , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: RE: [SCSI BUG 2.6.15-rc3-mm1] scheduling while atomic on boot tim e Date: Tue, 6 Dec 2005 22:27:49 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.1.0.0, Antispam-Data: 2005.12.6.36 X-PerlMx-Spam: Gauge=, SPAM=1%, Reasons='EMC_FROM_00+ -3, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __IMS_MSGID 0, __IMS_MUA 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1824 Lines: 50 > -----Original Message----- > From: James Bottomley [mailto:James.Bottomley@SteelEye.com] > Sent: Monday, December 05, 2005 3:32 PM > To: goggin, edward > Cc: 'Andrew Morton'; Wu Fengguang; > linux-kernel@vger.kernel.org; linux-scsi@vger.kernel.org > Subject: RE: [SCSI BUG 2.6.15-rc3-mm1] scheduling while > atomic on boot tim e > > On Fri, 2005-12-02 at 15:35 -0500, goggin, edward wrote: > > I think this is caused by my patch to scsi_next_command() > > (on or about 11/11) causing it to call put_device() and > > invoke the kobject's release() function while in soft > > interrupt. My patch should be removed ... although I > > don't have an alternate solution in mind for the original > > problem which was an "oops with USB Storage on 2.6.14". > > Yes and no. > > Reverting your patch won't fix the problem because scsi_put_command() > will then relinquish the last reference to the device and trigger the > same warning. Additionally, blk_run_queue now stands a good chance of > running on a freed queue which could trigger a panic. > > The problem seems to be that device_del() is apparently requiring user > context, if that's true, this will bite us not only here, but all over > the place like as a result of the call to put_device() at the bottom of scsi_request_fn() when called indirectly via scsi_next_command()'s call to scsi_run_queue() > ... in fact the fix might have to be to do the target reap > through a workqueue. > > Regardless, your patch isn't the culprit here, it's just the > thing which > is doing the last 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/