Skip to content

Commit

Permalink
SLUB slab validation: Alloc while interrupts are disabled must use GF…
Browse files Browse the repository at this point in the history
…P_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 <clameter@sgi.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Jun 16, 2007
1 parent 54c6ed7 commit dd08c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd08c40

Please sign in to comment.