]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] fix oops on usb storage device disconnect
authorJames Bottomley <James.Bottomley@steeleye.com>
Sun, 18 Sep 2005 20:05:20 +0000 (15:05 -0500)
committerJames Bottomley <jejb@titanic.(none)>
Mon, 19 Sep 2005 14:24:52 +0000 (09:24 -0500)
commit939647ee308e0ad924e776657704c7bedd498664
treecfff68b8f65a53e186fd1e7443aa370885ac1ed9
parenta64358db1253b35d508a411e80a3ad23b859ec88
[SCSI] fix oops on usb storage device disconnect

We fix the oops by enforcing the host state model.  There have also
been two extra states added: SHOST_CANCEL_RECOVERY and
SHOST_DEL_RECOVERY so we can take the model through host removal while
the recovery thread is active.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/hosts.c
drivers/scsi/scsi.c
drivers/scsi/scsi_error.c
drivers/scsi/scsi_ioctl.c
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_sysfs.c
drivers/scsi/sg.c
include/scsi/scsi_host.h