* [folded-merged] mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath-fix.patch removed from -mm tree
@ 2017-02-22 23:29 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2017-02-22 23:29 UTC (permalink / raw)
To: akpm, hannes, hillf.zj, mhocko, penguin-kernel, vbabka, mm-commits
The patch titled
Subject: mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath-fix
has been removed from the -mm tree. Its filename was
mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath-fix.patch
This patch was dropped because it was folded into mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath.patch
------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath-fix
fix alloc_flags may-be-used-uninitalized
Cc: Hillf Danton <hillf.zj@alibaba-inc.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/page_alloc.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff -puN mm/page_alloc.c~mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath-fix mm/page_alloc.c
--- a/mm/page_alloc.c~mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath-fix
+++ a/mm/page_alloc.c
@@ -3577,6 +3577,14 @@ retry_cpuset:
no_progress_loops = 0;
compact_priority = DEF_COMPACT_PRIORITY;
cpuset_mems_cookie = read_mems_allowed_begin();
+
+ /*
+ * The fast path uses conservative alloc_flags to succeed only until
+ * kswapd needs to be woken up, and to avoid the cost of setting up
+ * alloc_flags precisely. So we do that now.
+ */
+ alloc_flags = gfp_to_alloc_flags(gfp_mask);
+
/*
* We need to recalculate the starting point for the zonelist iterator
* because we might have used different nodemask in the fast path, or
@@ -3588,14 +3596,6 @@ retry_cpuset:
if (!ac->preferred_zoneref->zone)
goto nopage;
-
- /*
- * The fast path uses conservative alloc_flags to succeed only until
- * kswapd needs to be woken up, and to avoid the cost of setting up
- * alloc_flags precisely. So we do that now.
- */
- alloc_flags = gfp_to_alloc_flags(gfp_mask);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-02-22 23:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-22 23:29 [folded-merged] mm-consolidate-gfp_nofail-checks-in-the-allocator-slowpath-fix.patch removed from -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).