]> git.baikalelectronics.ru Git - kernel.git/commit
reserve_region_with_split: Fix GFP_KERNEL usage under spinlock
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Nov 2008 16:53:58 +0000 (09:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Nov 2008 16:53:58 +0000 (09:53 -0700)
commit0b41b1b7257248813b8edf3fe28715488b0c3b21
tree305e145fe0ee60580a127a7b72ce0d7ad582258e
parentd0ccec7eb0a3828389a1e82135497b73f3c301aa
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: Linus Torvalds <torvalds@linux-foundation.org>
kernel/resource.c