From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Richter Subject: Re: Linux 3.0 oopses when pulling a USB CDROM Date: Sun, 3 Jul 2011 22:37:57 +0200 Message-ID: <20110703223757.0e2b5ee0@stein> References: <1309609482.2554.8.camel@mulgrave> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from einhorn.in-berlin.de ([192.109.42.8]:56348 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754535Ab1GCUjA (ORCPT ); Sun, 3 Jul 2011 16:39:00 -0400 In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Alan Stern Cc: axboe@kernel.dk, James Bottomley , Andi Kleen , Dave Jones , SCSI development list , Kernel development list , "Rafael J. Wysocki" , USB list On Jul 02 Alan Stern wrote: > Also, I have no idea why this shows up with USB drives but not other > SCSI transports. A fluke of timing? A while ago I frequently observed oopses at removal of a FireWire CompactFlash card reader (an sd device which exposes itself as device with removable medium). At that time I wasn't motivated to track down whether the bug resided in the block or SCSI or firewire subsystem. The bug was apparently triggered because hald was polling the device like crazy for media changes, and that polling coincided with device hot unplug. Furthermore, FireWire CD-ROM removal never has been an exactly glitch-free experience because the SCSI stack occasionally went on to issue command retries for many minutes after device removal a.k.a. DID_NO_CONNECT. I don't remember crashes during FireWire CD-ROM removal, but it has been a while that I last used CD-ROM drives. I might test the card reader and a CD-ROM later next week on 3.0-rc6 if I find the time and the issue hadn't been resolved by then. I don't have hald anymore, but there are certainly other ways to force accesses during device shutdown. -- Stefan Richter -=====-==-== -=== ---== http://arcgraph.de/sr/