original_kernel/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
..
acorn
acpi
atm
base [SCSI] Re-do "final klist fixes" 2005-09-07 18:44:33 -07:00
block [PATCH] USB: ub 4: Zaitcev's quasi-S/G 2005-09-08 16:22:40 -07:00
bluetooth
cdrom Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6 2005-09-07 17:31:27 -07:00
char Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
cpufreq
crypto
dio
eisa
fc4
firmware
hwmon
i2c
ide Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-for-linus-2.6 2005-09-07 17:31:27 -07:00
ieee1394
infiniband
input
isdn [PATCH] -Wundef fixes (hisax) 2005-09-07 17:17:33 -07:00
macintosh
mca
md
media [PATCH] DVB: lgdt330x check callback fix 2005-09-07 16:58:02 -07:00
message
mfd
misc
mmc
mtd
net Merge branch 'upstream' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/misc-2.6 2005-09-07 17:28:25 -07:00
nubus
oprofile
parisc
parport
pci Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
pcmcia
pnp Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
s390
sbus
scsi [PATCH] scan all enabled ports on ata_piix 2005-09-08 05:57:23 -04:00
serial Merge linux-2.6 with linux-acpi-2.6 2005-09-08 01:45:47 -04:00
sh
sn
tc
telephony
usb [PATCH] USB Storage: close a race condition in disconnect near queuecommand 2005-09-08 16:22:55 -07:00
video
w1
zorro
Kconfig
Makefile