Skip to content
Commit 42c02023 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

reserve_region_with_split: Fix GFP_KERNEL usage under spinlock



This one apparently doesn't generate any warnings, because the function
is only used during system bootup, when the warnings are disabled.  But
it's still very wrong.

The __reserve_region_with_split() function is called with the
resource_lock held for writing, so it must only ever do GFP_ATOMIC
allocations.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cdce1f09
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment