]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kexec: allocate the kexec control page with KEXEC_CONTROL_MEMORY_GFP
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 16 Apr 2015 12:47:33 +0000 (14:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Apr 2015 14:52:01 +0000 (16:52 +0200)
commit7e01b5acd88b3f3108d8c4ce44e3205d67437202
tree8278dc40fdf14dedb0b89435a659de3fd413faec
parent27cf3a16b2535a490f8cf1d29a6634f1c70f7831
kexec: allocate the kexec control page with KEXEC_CONTROL_MEMORY_GFP

Introduce KEXEC_CONTROL_MEMORY_GFP to allow the architecture code
to override the gfp flags of the allocation for the kexec control
page. The loop in kimage_alloc_normal_control_pages allocates pages
with GFP_KERNEL until a page is found that happens to have an
address smaller than the KEXEC_CONTROL_MEMORY_LIMIT. On systems
with a large memory size but a small KEXEC_CONTROL_MEMORY_LIMIT
the loop will keep allocating memory until the oom killer steps in.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/kexec.h
include/linux/kexec.h
kernel/kexec.c