linux/drivers/usb/storage
Matthew Dharm 26186ba77b [PATCH] USB Storage: close a race condition in disconnect near queuecommand
This patch started life as as534, and has been re-diffed against the latest
tree.

usb-storage has a small loophole, a window between the time queuecommand
accepts a new command and the time the control thread starts to execute
it.  If disconnect is called during that window, the driver won't cancel
the pending command -- we've been relying on the SCSI core to cancel it
for us during host removal.  But it's better for usb-storage to cancel
it;  this avoids races and reduces reliance on the SCSI core.
Fortunately cancelling these commands is easy to do; the key is to do it
_before_ calling 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 <gregkh@suse.de>
2005-09-08 16:22:55 -07:00
..
datafab.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
datafab.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
debug.c [PATCH] USB Storage: fix compile error 2005-05-03 23:31:49 -07:00
debug.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dpcm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dpcm.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
freecom.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
freecom.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
initializers.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
initializers.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
isd200.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
isd200.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jumpshot.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
jumpshot.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
protocol.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
protocol.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsiglue.c [PATCH] USB Storage: retry hard errors 2005-06-27 14:44:03 -07:00
scsiglue.h [PATCH] USB Storage: port reset on transport error 2005-06-27 14:44:03 -07:00
sddr09.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sddr09.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sddr55.c [PATCH] USB: kfree cleanup for drivers/usb/* - no need to check for NULL 2005-04-18 17:39:34 -07:00
sddr55.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
shuttle_usbat.c [PATCH] USB: Spelling fixes for drivers/usb. 2005-05-03 23:31:52 -07:00
shuttle_usbat.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
transport.c [PATCH] USB Storage: remove dependency on SCSI-provided serial/tag number 2005-09-08 16:22:54 -07:00
transport.h [PATCH] USB Storage: port reset on transport error 2005-06-27 14:44:03 -07:00
unusual_devs.h [PATCH] usb-storage: Add IGNORE_RESIDUE flag for Mitsumi USB 2.0 card reader (VIA hardware) 2005-09-08 16:22:38 -07:00
usb.c [PATCH] USB Storage: close a race condition in disconnect near queuecommand 2005-09-08 16:22:55 -07:00
usb.h [PATCH] USB Storage: remove dependency on SCSI-provided serial/tag number 2005-09-08 16:22:54 -07:00