PM: sleep: Fix possible device suspend-resume deadlocks
Get series with b4
b4 am 6019796.lOV4Wx5bFT@kreacherVersions newest first
- v1 Latest3 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | async: Split async_schedule_node_domain()kernel/ | +34 | 0 replies | |
| 2/3 | async: Introduce async_schedule_dev_nocall()include/ kernel/ | +31 | 6 replies | |
| 3/3 | PM: sleep: Fix possible deadlocks in core system-wide PM codedrivers/ | +68 | 5 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Stanislaw Gruszka | Youngmin Nam |
|---|---|---|
| Series | T-b | |
| 1/3 | ||
| 2/3 | R-b | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 0/3] PM: sleep: Fix possible device suspend-resume deadlocks
Hi Everyone,
As reported here
https://lore.kernel.org/linux-pm/ZYvjiqX6EsL15moe@perf/
the device suspend-resume code running during system-wide PM transitions deadlock on low memory, because it attempts to acquire a mutex that's already held by it in those cases.
This series addresses the issue by changing the resume code behavior to directly run the device PM functions synchronously if they cannot be scheduled for asynchronous executions (patch [3/3]).
For this purpose, the async code is rearranged (patch [1/3]) and a new variant of async_schedule_dev() is introduced (patch [2/3]).
Thanks!