Skip to content
Commit 7e01b5ac authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

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: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 27cf3a16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment