diff options
author | Johannes Weiner <[email protected]> | 2015-06-24 16:57:21 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-06-24 17:49:43 -0700 |
commit | 9083905a2a13dec4093a9c35a9b7f60037b87672 (patch) | |
tree | 8f1400ca04d102e6b489053b2595247e24aa7094 /tools/perf/scripts/python/sched-migration.py | |
parent | dc56401fc9f25e8f93899991ec858c98a331d88c (diff) |
mm: page_alloc: inline should_alloc_retry()
The should_alloc_retry() function was meant to encapsulate retry
conditions of the allocator slowpath, but there are still checks
remaining in the main function, and much of how the retrying is
performed also depends on the OOM killer progress. The physical
separation of those conditions make the code hard to follow.
Inline the should_alloc_retry() checks. Notes:
- The __GFP_NOFAIL check is already done in __alloc_pages_may_oom(),
replace it with looping on OOM killer progress
- The pm_suspended_storage() check is meant to skip the OOM killer
when reclaim has no IO available, move to __alloc_pages_may_oom()
- The order <= PAGE_ALLOC_COSTLY order is re-united with its original
counterpart of checking whether reclaim actually made any progress
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Tetsuo Handa <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions