linux/drivers/block
Stephen M. Cameron 88f627ae39 cciss: fix SCSI device reset handler
Fix the SCSI reset error handler to send a working, properly addressed
reset message to the target device and add code to wait for the target
device to become ready by polling it with Test Unit Ready.

The existing reset code was broken in that it didn't bother to set the
8-byte LUN address to anything besides zero, so the command was addressed
to the controller, which pretended to the driver that the command
succeeded, while doing nothing.  Ages ago I tested this code, but
unbeknownst to me, my test was flawed, and what I thought was a tape drive
getting reset was actually nothing of the sort.  Unfortunately, there is
still lots of Smartarray firmware that doesn't handle doing target resets
right, and this code won't help in those cases, but it also shouldn't make
things worse in those cases than they already are.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Cc: Mike Miller <mikem@beardog.cca.cpqcorp.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-06-02 14:48:11 +02:00
..
aoe aoe: WIN_* -> ATA_CMD_* 2009-04-01 21:42:24 +02:00
paride block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
DAC960.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
DAC960.h Fix DAC960 driver on machines which don't support 64-bit DMA 2007-09-11 17:21:19 -07:00
Kconfig mg_disk: fix dependency on libata 2009-04-28 08:14:52 +02:00
Makefile mflash: initial support 2009-04-07 08:12:38 +02:00
amiflop.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
ataflop.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
brd.c brd: fix cacheflushing 2009-04-15 12:10:13 +02:00
cciss.c cciss: fix SCSI device reset handler 2009-06-02 14:48:11 +02:00
cciss.h cciss: kernel scan thread for MSA2012 2009-04-07 08:12:38 +02:00
cciss_cmd.h cciss: kernel scan thread for MSA2012 2009-04-07 08:12:38 +02:00
cciss_scsi.c cciss: fix SCSI device reset handler 2009-06-02 14:48:11 +02:00
cciss_scsi.h cciss: Fix cciss SCSI rescan code to better notice device changes 2008-10-09 08:56:18 +02:00
cpqarray.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
cpqarray.h
cryptoloop.c drivers: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:16:32 -04:00
floppy.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
hd.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
ida_cmd.h
ida_ioctl.h
loop.c splice: implement default splice_read method 2009-05-11 14:13:10 +02:00
mg_disk.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
nbd.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
pktcdvd.c block: Use accessor functions for queue limits 2009-05-22 23:22:54 +02:00
ps3disk.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
ps3vram.c proc 2/2: remove struct proc_dir_entry::owner 2009-03-31 01:14:44 +04:00
smart1,2.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sunvdc.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
swim.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
swim3.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
swim_asm.S m68k: mac - Add SWIM floppy support 2009-03-26 21:15:27 +01:00
sx8.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
ub.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
umem.c umem: fix request_queue lock warning 2009-04-24 08:54:21 +02:00
umem.h drivers/block/umem: trim trailing whitespace 2007-10-10 09:25:59 +02:00
viodasd.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
virtio_blk.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
xd.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00
xd.h [PATCH] switch xd 2008-10-21 07:48:11 -04:00
xen-blkfront.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
xsysace.c block: Do away with the notion of hardsect_size 2009-05-22 23:22:54 +02:00
z2ram.c block: implement and enforce request peek/start/fetch 2009-05-11 09:52:18 +02:00