Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/kexec: add __GFP_NORETRY to KEXEC_CONTROL_MEMORY_GFP

Avoid invoking the OOM-killer when allocating the control page. This
is the s390 variant of commit dc5cccacf427 ("kexec: don't invoke
OOM-killer for control page allocation").

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>

+1 -1
+1 -1
arch/s390/include/asm/kexec.h
··· 29 29 #define KEXEC_CONTROL_MEMORY_LIMIT (1UL<<31) 30 30 31 31 /* Allocate control page with GFP_DMA */ 32 - #define KEXEC_CONTROL_MEMORY_GFP GFP_DMA 32 + #define KEXEC_CONTROL_MEMORY_GFP (GFP_DMA | __GFP_NORETRY) 33 33 34 34 /* Maximum address we can use for the crash control pages */ 35 35 #define KEXEC_CRASH_CONTROL_MEMORY_LIMIT (-1UL)