[scsi-0120]scsi: enclosure: Fix stale device oops with hot replug
Bug #1860322 reported by
Fred Kimmy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
Unassigned | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Bug Description]
When running IO, change the max linkrate of the disk, then there is a call trace in function device_del();
[Steps to Reproduce]
1.Running IO for disks;
2. Change the linkrate of the disk for many times;
[Actual Results]
Call trace occurs;
[Expected Results]
Without exception
[Reproducibility]
Inevitably
[Additional information]
Hardware: D06
Firmware: NA
Kernel: NA
[Resolution]
This is kernel bug, 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.
529244bd1afc scsi: enclosure: Fix stale device oops with hot replug
This patch can be clean backported to 4.15 kernel.