Files
linux/drivers
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
..
2005-09-07 18:44:33 -07:00
2005-09-08 01:45:47 -04:00
2005-07-30 09:47:53 -05:00
2005-09-07 17:17:33 -07:00
2005-09-07 16:57:20 -07:00
2005-09-06 17:52:54 -05:00
2005-09-07 16:57:17 -07:00
2005-09-08 01:45:47 -04:00
2005-09-08 01:45:47 -04:00
2005-09-06 22:15:20 -04:00
2005-08-30 21:46:19 -07:00
2005-06-21 18:46:32 -07:00
2005-08-29 17:02:17 -04:00