-
Matthew Dharm authored
Following the recommendation of James Bottomley (of SCSI fame), this patch changes the queuecommand() routine so that when a command is received for a disconnected device, instead of accepting the command and then ignoring it, we fail the command immediately with DID_NO_CONNECT. This fixes a timeout-abort-oops sequence that would occur when the higher-level drivers (mostly the CD driver) try to queue a SYNCHRONIZE CACHE command during scsi_remove_host(). Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> ===== drivers/usb/storage/scsiglue.c 1.84 vs edited =====
13161f66