linux/drivers/usb/storage
Matthew Dharm 77f46328fb [PATCH] USB Storage: close a race condition in disconnect near probe
This patch started life as as533, and has been re-diffed against the
current tree.

Disconnect processing in usb-storage naturally divides into two parts:
one to quiesce the driver (make sure no commands are executing or
queued) and remove the host, and the other to deallocate all the USB and
non-USB resources.  This patch creates two subroutines to handle those
two parts.  Mostly it's just code movement, but there is one significant
change.  If the scsi-scanning thread fails to initialize but the host
has successfully been added, we need to quiesce the driver before
removing the host.  After all, it's possible that scanning could have
been initiated from somewhere else, such as userspace -- very low
probability, but it's easily handled by calling the new subroutine.

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:54 -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 probe 2005-09-08 16:22:54 -07:00
usb.h [PATCH] USB Storage: remove dependency on SCSI-provided serial/tag number 2005-09-08 16:22:54 -07:00