linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ACPI / hotplug / mm: Rework mutual exclusion between hibernation and memory hotplug
@ 2013-08-29 21:12 Rafael J. Wysocki
  2013-08-29 21:15 ` [PATCH 1/3] ACPI / scan: Change ordering of locks for device hotplug Rafael J. Wysocki
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Rafael J. Wysocki @ 2013-08-29 21:12 UTC (permalink / raw)
  To: ACPI Devel Maling List
  Cc: Toshi Kani, LKML, Linux PM list, Yasuaki Ishimatsu, linux-mm

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

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-31  0:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29 21:12 [PATCH 0/3] ACPI / hotplug / mm: Rework mutual exclusion between hibernation and memory hotplug Rafael J. Wysocki
2013-08-29 21:15 ` [PATCH 1/3] ACPI / scan: Change ordering of locks for device hotplug Rafael J. Wysocki
2013-08-31  0:17   ` Toshi Kani
2013-08-29 21:17 ` [PATCH 2/3] PM / hibernate: Create memory bitmaps after freezing user space Rafael J. Wysocki
2013-08-29 21:18 ` [PATCH 3/3] PM / hibernate / memory hotplug: Rework mutual exclusion Rafael J. Wysocki
2013-08-31  0:23   ` Toshi Kani
2013-08-31  0:39     ` Rafael J. Wysocki
2013-08-31  0:35       ` Toshi Kani
2013-08-31  0:50         ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox