Re: [PATCH] PM / Hibernate: allow hibernation with PAGE_POISONING_ZERO

From
Rafael J. Wysocki <hidden>
Date
2016-09-14 00:54:27
Also in
linux-mm, lkml
Reply to
Anisse Astier, 2016-09-09
On Friday, September 09, 2016 10:43:32 AM Anisse Astier wrote:
PAGE_POISONING_ZERO disables zeroing new pages on alloc, they are
poisoned (zeroed) as they become available.
In the hibernate use case, free pages will appear in the system without
being cleared, left there by the loading kernel.

This patch will make sure free pages are cleared on resume when
PAGE_POISONING_ZERO is enabled. We free the pages just after resume
because we can't do it later: going through any device resume code might
allocate some memory and invalidate the free pages bitmap.

Thus we don't need to disable hibernation when PAGE_POISONING_ZERO is
enabled.

Signed-off-by: Anisse Astier <redacted>
Cc: Kirill A. Shutemov <redacted>
Cc: Laura Abbott <redacted>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rafael J. Wysocki <redacted>
Applied (with the tags from Pavel and Kees).

Thanks,
Rafael
Thread (6 messages) 6 messages, 4 authors, last reply 2016-09-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help