summaryrefslogtreecommitdiff
path: root/drivers/scsi/fnic
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2020-01-08 17:21:32 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-01-10 01:38:40 -0500
commit529244bd1afc102ab164429d338d310d5d65e60d (patch)
tree529ca193cc8e260a56a22c0716da4028d8b1aa93 /drivers/scsi/fnic
parent465f4edaecc6c37f81349233e84d46246bcac11a (diff)
downloadlwn-529244bd1afc102ab164429d338d310d5d65e60d.tar.gz
lwn-529244bd1afc102ab164429d338d310d5d65e60d.zip
scsi: enclosure: Fix stale device oops with hot replug
Doing an add/remove/add on a SCSI device in an enclosure leads to an oops caused by poisoned values in the enclosure device list pointers. The reason is because we are keeping the enclosure device across the enclosed device add/remove/add but the current code is doing a device_add/device_del/device_add on it. This is the wrong thing to do in sysfs, so fix it by not doing a device_del on the enclosure device simply because of a hot remove of the drive in the slot. [mkp: added missing email addresses] Fixes: 43d8eb9cfd0a ("[SCSI] ses: add support for enclosure component hot removal") Link: https://lore.kernel.org/r/1578532892.3852.10.camel@HansenPartnership.com Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Reported-by: Luo Jiaxing <luojiaxing@huawei.com> Tested-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic')
0 files changed, 0 insertions, 0 deletions