[scsi-0120]scsi: enclosure: Fix stale device oops with hot replug

Bug #1860322 reported by Fred Kimmy
6
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

Ike Panhc (ikepanhc)
tags: added: ikeradar
Ike Panhc (ikepanhc)
description: updated
Revision history for this message
Ike Panhc (ikepanhc) wrote :

This patch can be clean backported to 4.15 kernel.

Changed in kunpeng920:
status: New → Triaged
Revision history for this message
Ike Panhc (ikepanhc) wrote :

In focal kernel since 5.4.0-13.16

Revision history for this message
Ike Panhc (ikepanhc) wrote :

In bionic kernel since 4.15.0-89.89

Changed in kunpeng920:
status: Triaged → Fix Committed
tags: removed: ikeradar
Revision history for this message
Ike Panhc (ikepanhc) wrote :

In HWE 5.3 kernel already.

Changed in kunpeng920:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.