James Bottomley
90a88d6ef8
scsi: fix soft lockup in scsi_remove_target() on module removal
This softlockup is currently happening:
[ 444.088002] NMI watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [kworker/1:1:29]
[ 444.088002] Modules linked in: lpfc(-) qla2x00tgt(O) qla2xxx_scst(O) scst_vdisk(O) scsi_transport_fc libcrc32c scst(O) dlm configfs nfsd lockd grace nfs_acl auth_rpcgss sunrpc ed
d snd_pcm_oss snd_mixer_oss snd_seq snd_seq_device dm_mod iTCO_wdt snd_hda_codec_realtek snd_hda_codec_generic gpio_ich iTCO_vendor_support ppdev snd_hda_intel snd_hda_codec snd_hda
_core snd_hwdep tg3 snd_pcm snd_timer libphy lpc_ich parport_pc ptp acpi_cpufreq snd pps_core fjes parport i2c_i801 ehci_pci tpm_tis tpm sr_mod cdrom soundcore floppy hwmon sg 8250_
fintek pcspkr i915 drm_kms_helper uhci_hcd ehci_hcd drm fb_sys_fops sysimgblt sysfillrect syscopyarea i2c_algo_bit usbcore button video usb_common fan ata_generic ata_piix libata th
ermal
[ 444.088002] CPU: 1 PID: 29 Comm: kworker/1:1 Tainted: G O 4.4.0-rc5-2.g1e923a3-default #1
[ 444.088002] Hardware name: FUJITSU SIEMENS ESPRIMO E /D2164-A1, BIOS 5.00 R1.10.2164.A1 05/08/2006
[ 444.088002] Workqueue: fc_wq_4 fc_rport_final_delete [scsi_transport_fc]
[ 444.088002] task: f6266ec0 ti: f6268000 task.ti: f6268000
[ 444.088002] EIP: 0060:[<c07e7044>] EFLAGS: 00000286 CPU: 1
[ 444.088002] EIP is at _raw_spin_unlock_irqrestore+0x14/0x20
[ 444.088002] EAX: 00000286 EBX: f20d3800 ECX: 00000002 EDX: 00000286
[ 444.088002] ESI: f50ba800 EDI: f2146848 EBP: f6269ec8 ESP: f6269ec8
[ 444.088002] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 444.088002] CR0: 8005003b CR2: 08f96600 CR3: 363ae000 CR4: 000006d0
[ 444.088002] Stack:
[ 444.088002] f6269eec c066b0f7 00000286 f2146848 f50ba808 f50ba800 f50ba800 f2146a90
[ 444.088002] f2146848 f6269f08 f8f0a4ed f3141000 f2146800 f2146a90 f619fa00 00000040
[ 444.088002] f6269f40 c026cb25 00000001 166c6392 00000061 f6757140 f6136340 00000004
[ 444.088002] Call Trace:
[ 444.088002] [<c066b0f7>] scsi_remove_target+0x167/0x1c0
[ 444.088002] [<f8f0a4ed>] fc_rport_final_delete+0x9d/0x1e0 [scsi_transport_fc]
[ 444.088002] [<c026cb25>] process_one_work+0x155/0x3e0
[ 444.088002] [<c026cde7>] worker_thread+0x37/0x490
[ 444.088002] [<c027214b>] kthread+0x9b/0xb0
[ 444.088002] [<c07e72c1>] ret_from_kernel_thread+0x21/0x40
What appears to be happening is that something has pinned the target
so it can't go into STARGET_DEL via final release and the loop in
scsi_remove_target spins endlessly until that happens.
The fix for this soft lockup is to not keep looping over a device that
we've called remove on but which hasn't gone into DEL state. This
patch will retain a simplistic memory of the last target and not keep
looping over it.
Reported-by: Sebastian Herbszt <[email protected]>
Tested-by: Sebastian Herbszt <[email protected]>
Fixes: 4099819356
Cc: [email protected]
Signed-off-by: James Bottomley <[email protected]>
|
2016-02-11 21:47:32 -08:00 |
| .. |
|
accessibility
|
|
|
|
acpi
|
tree wide: use kvfree() than conditional kfree()/vfree()
|
2016-01-22 17:02:18 -08:00 |
|
amba
|
|
|
|
android
|
|
|
|
ata
|
Merge branch 'for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
|
2016-01-11 19:33:59 -08:00 |
|
atm
|
|
|
|
auxdisplay
|
|
|
|
base
|
wrappers for ->i_mutex access
|
2016-01-22 18:04:28 -05:00 |
|
bcma
|
GPIO bulk updates for the v4.5 kernel cycle:
|
2016-01-17 12:32:01 -08:00 |
|
block
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
|
2016-01-24 12:34:13 -08:00 |
|
bluetooth
|
|
|
|
bus
|
ARM: SoC driver updates for v4.5
|
2016-01-20 18:42:30 -08:00 |
|
cdrom
|
|
|
|
char
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-01-23 12:24:56 -08:00 |
|
clk
|
ARM: DT updates for v4.5
|
2016-01-20 18:16:29 -08:00 |
|
clocksource
|
ARM: SoC cleanups for v4.5
|
2016-01-20 17:55:20 -08:00 |
|
connector
|
|
|
|
cpufreq
|
powerpc updates for 4.5
|
2016-01-15 13:18:47 -08:00 |
|
cpuidle
|
More power management and ACPI updates for v4.5-rc1
|
2016-01-20 19:06:49 -08:00 |
|
crypto
|
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
|
2016-01-22 11:58:43 -08:00 |
|
dca
|
|
|
|
devfreq
|
PM / devfreq: Do not show statistics if it's not ready.
|
2016-01-13 17:30:33 +09:00 |
|
dio
|
|
|
|
dma
|
dmaengine fixes for 4.5-rc1
|
2016-01-20 10:15:21 -08:00 |
|
dma-buf
|
|
|
|
edac
|
|
|
|
eisa
|
|
|
|
extcon
|
|
|
|
firewire
|
|
|
|
firmware
|
UBSAN: run-time undefined behavior sanity checker
|
2016-01-20 17:09:18 -08:00 |
|
fmc
|
|
|
|
fpga
|
|
|
|
gpio
|
ARM: SoC multiplatform code changes for v4.5
|
2016-01-20 18:03:56 -08:00 |
|
gpu
|
tree wide: use kvfree() than conditional kfree()/vfree()
|
2016-01-22 17:02:18 -08:00 |
|
hid
|
asm-generic changes for 4.5
|
2016-01-20 17:30:20 -08:00 |
|
hsi
|
HSI: omap_ssi_port: fix handling of_get_named_gpio result
|
2016-01-07 16:07:54 +01:00 |
|
hv
|
char/misc patches for 4.5-rc1
|
2016-01-13 10:23:36 -08:00 |
|
hwmon
|
Merge git://www.linux-watchdog.org/linux-watchdog
|
2016-01-17 12:15:38 -08:00 |
|
hwspinlock
|
|
|
|
hwtracing
|
|
|
|
i2c
|
Merge branch 'i2c/for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
|
2016-01-14 11:25:37 -08:00 |
|
ide
|
drivers/ide: make ide-scan-pci.c driver explicitly non-modular
|
2016-01-18 14:12:33 -05:00 |
|
idle
|
|
|
|
iio
|
Merge branch 'akpm' (patches from Andrew)
|
2016-01-21 12:32:08 -08:00 |
|
infiniband
|
Initial roundup of 4.5 merge window patches
|
2016-01-23 18:45:06 -08:00 |
|
input
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
|
2016-01-22 17:20:30 -08:00 |
|
iommu
|
IOMMU Updates for Linux v4.5
|
2016-01-19 09:35:06 -08:00 |
|
ipack
|
|
|
|
irqchip
|
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
|
2016-01-24 12:50:56 -08:00 |
|
isdn
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
|
2016-01-11 23:55:43 -05:00 |
|
leds
|
GPIO bulk updates for the v4.5 kernel cycle:
|
2016-01-17 12:32:01 -08:00 |
|
lguest
|
lguest: Map switcher text R/O
|
2016-01-12 12:17:28 +01:00 |
|
lightnvm
|
lightnvm: introduce factory reset
|
2016-01-12 08:21:18 -07:00 |
|
macintosh
|
|
|
|
mailbox
|
|
|
|
mcb
|
|
|
|
md
|
Merge branch 'for-4.5/drivers' of git://git.kernel.dk/linux-block
|
2016-01-21 18:19:38 -08:00 |
|
media
|
dma-mapping: always provide the dma_map_ops based implementation
|
2016-01-20 17:09:18 -08:00 |
|
memory
|
ARM: SoC driver updates for v4.5
|
2016-01-20 18:42:30 -08:00 |
|
memstick
|
memstick: use sector_div instead of do_div
|
2016-01-20 17:09:18 -08:00 |
|
message
|
|
|
|
mfd
|
GPIO bulk updates for the v4.5 kernel cycle:
|
2016-01-17 12:32:01 -08:00 |
|
misc
|
Merge branch 'akpm' (patches from Andrew)
|
2016-01-21 12:32:08 -08:00 |
|
mmc
|
MMC core:
|
2016-01-22 12:04:21 -08:00 |
|
mtd
|
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
|
2016-01-24 12:50:56 -08:00 |
|
net
|
Initial roundup of 4.5 merge window patches
|
2016-01-23 18:45:06 -08:00 |
|
nfc
|
|
|
|
ntb
|
NTB: Fix macro parameter conflict with field name
|
2016-01-21 19:53:10 -05:00 |
|
nubus
|
|
|
|
nvdimm
|
mm, dax, pmem: introduce {get|put}_dev_pagemap() for dax-gup
|
2016-01-15 17:56:32 -08:00 |
|
nvme
|
Merge branch 'for-4.5/nvme' of git://git.kernel.dk/linux-block
|
2016-01-21 19:58:02 -08:00 |
|
nvmem
|
|
|
|
of
|
DeviceTree updates for 4.5:
|
2016-01-14 11:13:28 -08:00 |
|
oprofile
|
wrappers for ->i_mutex access
|
2016-01-22 18:04:28 -05:00 |
|
parisc
|
parisc: convert to dma_map_ops
|
2016-01-20 17:09:18 -08:00 |
|
parport
|
|
|
|
pci
|
PCI changes for the v4.5 merge window:
|
2016-01-21 11:52:16 -08:00 |
|
pcmcia
|
|
|
|
perf
|
|
|
|
phy
|
|
|
|
pinctrl
|
GPIO bulk updates for the v4.5 kernel cycle:
|
2016-01-17 12:32:01 -08:00 |
|
platform
|
ideapad-laptop: Add Lenovo Yoga 700 to no_hw_rfkill dmi list
|
2016-01-24 10:15:01 -08:00 |
|
pnp
|
|
|
|
power
|
power: bq27xxx_battery: Fix bq27541 AveragePower register address
|
2016-01-14 01:03:18 +01:00 |
|
powercap
|
Merge branch 'powercap'
|
2016-01-12 01:12:40 +01:00 |
|
pps
|
|
|
|
ps3
|
|
|
|
ptp
|
|
|
|
pwm
|
pwm: Mark all devices as "might sleep"
|
2016-01-21 15:04:59 +01:00 |
|
rapidio
|
rapidio: use kobj_to_dev()
|
2016-01-20 17:09:18 -08:00 |
|
ras
|
|
|
|
regulator
|
regulator: Update for v4.5
|
2016-01-15 12:14:47 -08:00 |
|
remoteproc
|
virtio: make find_vqs() checkpatch.pl-friendly
|
2016-01-12 20:47:06 +02:00 |
|
reset
|
|
|
|
rpmsg
|
virtio: make find_vqs() checkpatch.pl-friendly
|
2016-01-12 20:47:06 +02:00 |
|
rtc
|
RTC for 4.5
|
2016-01-18 12:10:45 -08:00 |
|
s390
|
virtio: barrier rework+fixes
|
2016-01-18 16:44:24 -08:00 |
|
sbus
|
|
|
|
scsi
|
scsi: fix soft lockup in scsi_remove_target() on module removal
|
2016-02-11 21:47:32 -08:00 |
|
sfi
|
|
|
|
sh
|
|
|
|
sn
|
|
|
|
soc
|
ARM: SoC support for Tegra platforms for v4.5
|
2016-01-22 17:30:52 -08:00 |
|
spi
|
powerpc updates for 4.5
|
2016-01-15 13:18:47 -08:00 |
|
spmi
|
|
|
|
ssb
|
|
|
|
staging
|
Initial roundup of 4.5 merge window patches
|
2016-01-23 18:45:06 -08:00 |
|
target
|
Merge branch 'for-4.5/nvme' of git://git.kernel.dk/linux-block
|
2016-01-21 19:58:02 -08:00 |
|
tc
|
|
|
|
thermal
|
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
|
2016-01-24 12:43:06 -08:00 |
|
thunderbolt
|
|
|
|
tty
|
ARM: SoC driver updates for v4.5
|
2016-01-20 18:42:30 -08:00 |
|
uio
|
|
|
|
usb
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2016-01-23 12:24:56 -08:00 |
|
uwb
|
|
|
|
vfio
|
|
|
|
vhost
|
|
|
|
video
|
wrappers for ->i_mutex access
|
2016-01-22 18:04:28 -05:00 |
|
virt
|
|
|
|
virtio
|
virtio: make find_vqs() checkpatch.pl-friendly
|
2016-01-12 20:47:06 +02:00 |
|
vlynq
|
|
|
|
vme
|
|
|
|
w1
|
|
|
|
watchdog
|
watchdog: asm9260: remove __init and __exit annotations
|
2016-01-11 22:48:05 +01:00 |
|
xen
|
virtio: barrier rework+fixes
|
2016-01-18 16:44:24 -08:00 |
|
zorro
|
|
|
|
Kconfig
|
|
|
|
Makefile
|
|
|