Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+kernel@arm.linux.org.uk>
To: Eric Biederman <ebiederm@xmission.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>,
	linux-ia64@vger.kernel.org, Tony Luck <tony.luck@intel.com>,
	kexec@lists.infradead.org
Subject: [PATCH 1/3] kexec: don't invoke OOM-killer for control page allocation
Date: Thu, 14 Apr 2016 21:00:02 +0100	[thread overview]
Message-ID: <E1aqnQo-0001Tu-Ch@rmk-PC.arm.linux.org.uk> (raw)
In-Reply-To: <20160414195938.GV19428@n2100.arm.linux.org.uk>

If we are unable to find a suitable page when allocating the control
page, do not invoke the OOM-killer: killing processes probably isn't
going to help.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
 include/linux/kexec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 2cc643c6e870..1b32ab587f66 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -41,7 +41,7 @@
 #endif
 
 #ifndef KEXEC_CONTROL_MEMORY_GFP
-#define KEXEC_CONTROL_MEMORY_GFP GFP_KERNEL
+#define KEXEC_CONTROL_MEMORY_GFP (GFP_KERNEL | __GFP_NORETRY)
 #endif
 
 #ifndef KEXEC_CONTROL_PAGE_SIZE
-- 
2.1.0


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2016-04-14 20:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 19:59 [PATCH 0/3] Initial Kexec patches Russell King - ARM Linux
2016-04-14 20:00 ` Russell King [this message]
2016-04-18  5:32   ` [PATCH 1/3] kexec: don't invoke OOM-killer for control page allocation Baoquan He
2016-04-18  8:39     ` Russell King - ARM Linux
2016-04-18 10:12       ` Baoquan He
2016-04-28  9:53         ` Baoquan He
2016-04-14 20:00 ` [PATCH 2/3] kexec: ensure user memory sizes do not wrap Russell King
2016-04-18  5:35   ` Baoquan He
2016-04-18  8:37     ` Russell King - ARM Linux
2016-04-18 10:17       ` Baoquan He
2016-04-28  9:56   ` Baoquan He
2016-04-28 11:07   ` Minfei Huang
2016-04-28 12:22     ` Russell King - ARM Linux
2016-04-29  9:32       ` Minfei Huang
2016-04-29  9:30         ` Russell King - ARM Linux
2016-04-29 10:45           ` Minfei Huang
2016-04-14 20:00 ` [PATCH 3/3] kexec: arrange for paddr_vmcoreinfo_note() to return phys_addr_t Russell King
2016-04-18  5:38   ` Baoquan He
2016-04-18  8:36     ` Russell King - ARM Linux
2016-04-18 10:32       ` Baoquan He
2016-04-18 10:52         ` Russell King - ARM Linux
2016-04-18 11:28           ` Baoquan He
2016-04-28  8:56             ` Russell King - ARM Linux
2016-04-28  9:59   ` Baoquan He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1aqnQo-0001Tu-Ch@rmk-PC.arm.linux.org.uk \
    --to=rmk+kernel@arm.linux.org.uk \
    --cc=ebiederm@xmission.com \
    --cc=fenghua.yu@intel.com \
    --cc=kexec@lists.infradead.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox