From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1as1oE-0006rX-Rj for kexec@lists.infradead.org; Mon, 18 Apr 2016 05:33:19 +0000 Date: Mon, 18 Apr 2016 13:32:53 +0800 From: Baoquan He Subject: Re: [PATCH 1/3] kexec: don't invoke OOM-killer for control page allocation Message-ID: <20160418053253.GA3602@x1.redhat.com> References: <20160414195938.GV19428@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Russell King Cc: Fenghua Yu , Tony Luck , linux-ia64@vger.kernel.org, Eric Biederman , kexec@lists.infradead.org On 04/14/16 at 09:00pm, Russell King wrote: > 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. Originally kexec was made to reboot to test kernel quickly. If 1st kernel is palyed and hurted in a bad state and developer want to discard it and take a quick reboot, why don't we have a best try to make a successful kexec load? I personally think this change sounds un-reasonable. > > Signed-off-by: Russell King > --- > 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 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec