diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2022-05-30 11:37:48 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2022-06-01 12:03:16 +0200 |
commit | 9dade1707fdb4fb6a1d498aa8811779556b7ffbc (patch) | |
tree | db45b0fe1ef8689670545a998f68ae76912a94bb /arch/s390 | |
parent | 13e282cc92d7e4b96fad8b71adf48b7eab22f6b0 (diff) | |
download | linux-9dade1707fdb4fb6a1d498aa8811779556b7ffbc.tar.bz2 |
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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/kexec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/kexec.h b/arch/s390/include/asm/kexec.h index 7f3c9ac34bd8..9df3b4d64724 100644 --- a/arch/s390/include/asm/kexec.h +++ b/arch/s390/include/asm/kexec.h @@ -29,7 +29,7 @@ #define KEXEC_CONTROL_MEMORY_LIMIT (1UL<<31) /* Allocate control page with GFP_DMA */ -#define KEXEC_CONTROL_MEMORY_GFP GFP_DMA +#define KEXEC_CONTROL_MEMORY_GFP (GFP_DMA | __GFP_NORETRY) /* Maximum address we can use for the crash control pages */ #define KEXEC_CRASH_CONTROL_MEMORY_LIMIT (-1UL) |