The rheap allocation function, rh_alloc, could call kmalloc with GFP_KERNEL. This can sleep, which means you couldn't hold a spinlock while called rh_alloc. Change all kmalloc calls to use GFP_ATOMIC so that it won't sleep. This is safe because only small blocks are allocated. Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> |
||
---|---|---|
.. | ||
Makefile | ||
alloc.c | ||
checksum_32.S | ||
checksum_64.S | ||
copy_32.S | ||
copypage_64.S | ||
copyuser_64.S | ||
div64.S | ||
dma-noncoherent.c | ||
locks.c | ||
mem_64.S | ||
memcpy_64.S | ||
rheap.c | ||
sstep.c | ||
string.S | ||
usercopy_64.c |