A deadlock issue in scsi rescan task while resuming from S3
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
HWE Next |
New
|
Undecided
|
Unassigned | |||
linux (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Fix Released
|
Medium
|
AceLan Kao | |||
Lunar |
Fix Released
|
Medium
|
AceLan Kao | |||
Mantic |
Fix Released
|
Medium
|
AceLan Kao | |||
linux-oem-6.0 (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Won't Fix
|
Undecided
|
AceLan Kao | |||
Lunar |
Invalid
|
Undecided
|
Unassigned | |||
Mantic |
Invalid
|
Undecided
|
Unassigned | |||
linux-oem-6.1 (Ubuntu) | Status tracked in Mantic | |||||
Jammy |
Fix Released
|
Undecided
|
AceLan Kao | |||
Lunar |
Invalid
|
Undecided
|
Unassigned | |||
Mantic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
During the S3 stress test, the system sometimes hangs when resuming. This is due to the SCSI rescan task being unable to acquire the mutex lock during the resumption from S3. The mutex lock has already been acquired by EH and is waiting for the device to be ready for a rescan. Unfortunately, the mutex lock is never released by either party, leading to a deadlock.
[Fix]
Kaiheng submitted a patch to fix this issue which defers the rescan if the disk is still suspended so the resume process of the disk device can proceed.
https:/
Since the patch has not been accepted by the upstream yet, so submit it to the OEM kernel for now.
The similiar patch has been included in v6.4-rc7
6aa0365a3c85 ata: libata-scsi: Avoid deadlock on rescan after device resume
[Test]
Verified on the machines by me and ODM.
[Where problems could occur]
It only defers the rescan task, and should not have any impact to current systems.
Changed in linux-oem-6.1 (Ubuntu Lunar): | |
status: | New → Invalid |
Changed in linux-oem-6.1 (Ubuntu Mantic): | |
status: | New → Invalid |
Changed in linux-oem-6.1 (Ubuntu Jammy): | |
status: | New → In Progress |
assignee: | nobody → AceLan Kao (acelankao) |
Changed in linux (Ubuntu Mantic): | |
assignee: | nobody → AceLan Kao (acelankao) |
Changed in linux (Ubuntu Lunar): | |
assignee: | nobody → AceLan Kao (acelankao) |
Changed in linux (Ubuntu Jammy): | |
assignee: | nobody → AceLan Kao (acelankao) |
Changed in linux (Ubuntu Mantic): | |
status: | New → In Progress |
Changed in linux (Ubuntu Lunar): | |
status: | New → In Progress |
Changed in linux (Ubuntu Jammy): | |
status: | New → In Progress |
tags: | added: oem-priority originate-from-1999593 somerville |
summary: |
- A race condiction issue in scsi rescan task while resuming from S3 + A deadlock issue in scsi rescan task while resuming from S3 |
Changed in linux-oem-6.0 (Ubuntu Jammy): | |
assignee: | nobody → AceLan Kao (acelankao) |
status: | New → In Progress |
tags: | added: verification-needed-jammy |
Changed in linux-oem-6.1 (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux-oem-6.0 (Ubuntu Lunar): | |
status: | New → Invalid |
Changed in linux-oem-6.0 (Ubuntu Mantic): | |
status: | New → Invalid |
description: | updated |
Changed in linux (Ubuntu Jammy): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Lunar): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Mantic): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Lunar): | |
status: | In Progress → Fix Committed |
Verified with 6.1.0-1012-oem