[PATCH] Make rheap safe for spinlocks
Kumar Gala
galak at kernel.crashing.org
Tue Apr 15 05:58:15 EST 2008
On Apr 14, 2008, at 10:43 AM, Timur Tabi wrote:
> 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 at freescale.com>
> ---
>
> This patch is for 2.6.26.
Is this need to fix a bug with an existing driver of for a new driver?
- k
More information about the Linuxppc-dev
mailing list