]> err.no Git - linux-2.6/commit
[PATCH] slab: fix sleeping in atomic bug
authorChristoph Lameter <clameter@sgi.com>
Wed, 13 Dec 2006 08:34:11 +0000 (00:34 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:05:48 +0000 (09:05 -0800)
commitdd47ea755693228bf842c779e8afdfa47efb20a3
tree3dbaea0064765ff7dbc82e5bf0af73aba15dd6b2
parent6a8ba9d12150461acc91bd3c9124eac19e853218
[PATCH] slab: fix sleeping in atomic bug

Fallback_alloc() does not do the check for GFP_WAIT as done in
cache_grow().  Thus interrupts are disabled when we call kmem_getpages()
which results in the failure.

Duplicate the handling of GFP_WAIT in cache_grow().

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c