diff options
| author | Rafael J. Wysocki <[email protected]> | 2010-03-05 13:42:13 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-03-06 11:26:26 -0800 |
| commit | 452aa6999e6703ffbddd7f6ea124d3968915f3e3 (patch) | |
| tree | 48e375fdb60920675f68b444b462903ad8bb6940 /tools/perf/scripts/python | |
| parent | ad2bd7e0e9647cd48593a6b3a2be07dc2c2d28ed (diff) | |
mm/pm: force GFP_NOIO during suspend/hibernation and resume
There are quite a few GFP_KERNEL memory allocations made during
suspend/hibernation and resume that may cause the system to hang, because
the I/O operations they depend on cannot be completed due to the
underlying devices being suspended.
Avoid this problem by clearing the __GFP_IO and __GFP_FS bits in
gfp_allowed_mask before suspend/hibernation and restoring the original
values of these bits in gfp_allowed_mask durig the subsequent resume.
[[email protected]: fix CONFIG_PM=n linkage]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reported-by: Maxim Levitsky <[email protected]>
Cc: Sebastian Ott <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions