From: Christoph Lameter Date: Sat, 16 Jun 2007 17:15:57 +0000 (-0700) Subject: SLUB slab validation: Alloc while interrupts are disabled must use GFP_ATOMIC X-Git-Tag: v2.6.22-rc5~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=dd08c40e3e23f868eb0e49f638eb208736ec7e66;p=linux-2.6-omap-h63xx.git SLUB slab validation: Alloc while interrupts are disabled must use GFP_ATOMIC The data structure to manage the information gathered about functions allocating and freeing objects is allocated when the list_lock has already been taken. We need to allocate with GFP_ATOMIC instead of GFP_KERNEL. Signed-off-by: Christoph Lameter Cc: Mel Gorman Cc: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index c9ab68881b4..2a1338c516f 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2867,7 +2867,7 @@ static int alloc_loc_track(struct loc_track *t, unsigned long max) order = get_order(sizeof(struct location) * max); - l = (void *)__get_free_pages(GFP_KERNEL, order); + l = (void *)__get_free_pages(GFP_ATOMIC, order); if (!l) return 0;