Re: ata_ram driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Thursday, March 6, 2008 - 1:21 am

Mark Lord wrote:

It's because of the sequence of events.  Currently, driver unload
sequence is the same as when the device is hot unplugged.  libata
detects that the device is gone and disables it and report it to SCSI
layer.  SCSI layer takes over and tries to kill the SCSI device and tell
sd to shutdown and sd issues START_STOP to shutdown which fails w/
DID_BAD_TARGET because the matching ATA device is already gone.  I've
left it that way because I'm not sure whether spinning down the drive on
driver unload is the correct thing to do.  The message is annoying tho.

Thanks.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ata_ram driver, Matthew Wilcox, (Fri Feb 22, 1:09 pm)
Re: ata_ram driver, Mark Lord, (Fri Feb 22, 2:27 pm)
Re: ata_ram driver, Tejun Heo, (Thu Mar 6, 1:21 am)
Re: ata_ram driver, James Bottomley, (Thu Mar 6, 8:28 am)
Re: ata_ram driver, Tejun Heo, (Thu Mar 6, 4:55 pm)
Re: ata_ram driver, James Bottomley, (Thu Mar 6, 5:01 pm)
Re: ata_ram driver, Tejun Heo, (Thu Mar 6, 5:13 pm)
Re: ata_ram driver, James Bottomley, (Thu Mar 6, 5:22 pm)
Re: ata_ram driver, Tejun Heo, (Thu Mar 6, 5:28 pm)
Re: ata_ram driver, James Bottomley, (Thu Mar 6, 5:39 pm)
Re: ata_ram driver, Tejun Heo, (Thu Mar 6, 5:43 pm)
Re: ata_ram driver, Jeff Garzik, (Thu Mar 6, 7:16 pm)
Re: ata_ram driver, James Bottomley, (Thu Mar 6, 7:44 pm)
[PATCH 1/2] scsi: export scsi_forget_host(), Tejun Heo, (Thu Mar 6, 8:08 pm)