]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Make rheap safe for spinlocks
authorTimur Tabi <timur@freescale.com>
Mon, 14 Apr 2008 15:43:38 +0000 (10:43 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 14:50:38 +0000 (09:50 -0500)
commit27a0fd5d4e6b1124fc25c3053461818a078fc030
treee178a2fa9406fed6f6783e3f095732fea28b91c9
parent74df2bb5f351a5965c3acee697c6ce1dd0796e65
[POWERPC] Make rheap safe for spinlocks

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>
arch/powerpc/lib/rheap.c