Skip to content

ACPI / hotplug / mm: Rework mutual exclusion between hibernation and memory hotplug

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI / scan: Change ordering of locks for device hotplugdrivers/acpi/scan.c+6 -91 reply
2/3PM / hibernate: Create memory bitmaps after freezing user spacekernel/power/hibernate.c kernel/power/user.c+31 -320 replies
3/3PM / hibernate / memory hotplug: Rework mutual exclusionkernel/power/hibernate.c kernel/power/user.c mm/memory_hotplug.c+6 -44 replies

Reviews trailers per patch

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

PatchToshi Kani
1/3A-b
2/3
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 0/3] ACPI / hotplug / mm: Rework mutual exclusion between hibernation and memory hotplug

Hi All,

One thing that bothers me quite a bit about memory hotplug is that lock_hotplug_memory() acquires pm_mutex which is kind of a blunt thing and has a huge potential for deadlocks.

This can be avoided if device_hotplug_lock is held around hibernation, which is not too difficult to make happen and hence the following patch series.

[1/3] ACPI: Acquire device_hotplug_lock before acpi_scan_lock (this is
necessary, because hibernation acquires acpi_scan_lock in linux-next).

[2/3] PM / hibernate: Allocate memory bitmaps after freezing user space
processes (the reason why is explained in the changelog).

[3/3] Rework mutual exclusion between hibernation and memory hotplug.

On top of linux-pm.git/linux-next.

Thanks,
Rafael