linux-stable/drivers
Mike Christie 945a160794 scsi: target: Fix ordered CMD_T_SENT handling
We can race where target_handle_task_attr() has put the cmd on the
delayed_cmd_list. Then target_restart_delayed_cmds() has removed it and set
CMD_T_SENT, but then target_execute_cmd() now clears that bit.

This patch moves the clearing to before we've put the cmd on the list.

Link: https://lore.kernel.org/r/20210930020422.92578-2-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-10-18 22:38:35 -04:00
..
accessibility
acpi
amba
android
ata scsi: ata: Switch to attribute groups 2021-10-16 21:45:52 -04:00
atm
auxdisplay
base
bcma
block
bluetooth
bus
cdrom
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire scsi: firewire: sbp2: Switch to attribute groups 2021-10-16 21:45:52 -04:00
firmware
fpga
fsi
gnss
gpio
gpu
greybus
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband scsi: RDMA/srp: Switch to attribute groups 2021-10-16 21:45:53 -04:00
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md
media
memory
memstick
message scsi: message: fusion: Switch to attribute groups 2021-10-16 21:45:53 -04:00
mfd
misc
mmc
most
mtd
mux
net
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 scsi: zfcp: Switch to attribute groups 2021-10-16 21:45:53 -04:00
sbus
scsi scsi: ufs: ufs-mediatek: Fix wrong location for ref-clk delay 2021-10-18 22:38:35 -04:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging scsi: staging: unisys: Remove the shost_attrs member 2021-10-16 21:45:59 -04:00
target scsi: target: Fix ordered CMD_T_SENT handling 2021-10-18 22:38:35 -04:00
tc
tee
thermal
thunderbolt
tty
uio
usb scsi: usb: Switch to attribute groups 2021-10-16 21:45:59 -04:00
vdpa
vfio
vhost
video
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile