Skip to content

PM: sleep: Fix possible device suspend-resume deadlocks

Rafael J. Wysocki linux-pm lkml 1 version In review

Get series with b4
b4 am 6019796.lOV4Wx5bFT@kreacher

Versions newest first

  1. v1 Latest3 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3async: Split async_schedule_node_domain()kernel/async.c+34 -220 replies
2/3async: Introduce async_schedule_dev_nocall()include/linux/async.h kernel/async.c+31 -06 replies
3/3PM: sleep: Fix possible deadlocks in core system-wide PM codedrivers/base/power/main.c+68 -805 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchStanislaw GruszkaYoungmin Nam
SeriesT-b
1/3
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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!