mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-page_alloc-warn-about-empty-nodemask.patch added to -mm tree
@ 2016-09-20 20:58 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-09-20 20:58 UTC (permalink / raw)
  To: zhong, iamjoonsoo.kim, jallen, mhocko, penguin-kernel, qiuxishi,
	rientjes, vbabka, mm-commits


The patch titled
     Subject: mm, page_alloc: warn about empty nodemask
has been added to the -mm tree.  Its filename is
     mm-page_alloc-warn-about-empty-nodemask.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-page_alloc-warn-about-empty-nodemask.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-page_alloc-warn-about-empty-nodemask.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Li Zhong <zhong@linux.vnet.ibm.com>
Subject: mm, page_alloc: warn about empty nodemask

Warn about allocating with an empty nodemask, it would be easier to
understand than oom messages.  The check is added in the slow path.

Link: http://lkml.kernel.org/r/1473208886.12692.2.camel@TP420
Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: John Allen <jallen@linux.vnet.ibm.com>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: n-horiguchi@ah.jp.nec.com said:
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff -puN mm/page_alloc.c~mm-page_alloc-warn-about-empty-nodemask mm/page_alloc.c
--- a/mm/page_alloc.c~mm-page_alloc-warn-about-empty-nodemask
+++ a/mm/page_alloc.c
@@ -3521,6 +3521,12 @@ __alloc_pages_slowpath(gfp_t gfp_mask, u
 	if (page)
 		goto got_pg;
 
+	if (ac->nodemask && nodes_empty(*ac->nodemask)) {
+		pr_warn("nodemask is empty\n");
+		gfp_mask &= ~__GFP_NOWARN;
+		goto nopage;
+	}
+
 	/*
 	 * For costly allocations, try direct compaction first, as it's likely
 	 * that we have enough base pages and don't need to reclaim. Don't try
_

Patches currently in -mm which might be from zhong@linux.vnet.ibm.com are

mm-page_alloc-warn-about-empty-nodemask.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-20 20:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-20 20:58 + mm-page_alloc-warn-about-empty-nodemask.patch added to -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).