diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-06-16 13:15:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-06-16 16:16:15 -0400 |
commit | dd08c40e3e23f868eb0e49f638eb208736ec7e66 (patch) | |
tree | 75b2cabf36cc35d6549dbda5e53b09650ec422f7 | |
parent | 54c6ed7562d59ab238df1ec9ff76d81d7d0f0842 (diff) |
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 <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>
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2867,7 +2867,7 @@ static int alloc_loc_track(struct loc_track *t, unsigned long max) | |||
2867 | 2867 | ||
2868 | order = get_order(sizeof(struct location) * max); | 2868 | order = get_order(sizeof(struct location) * max); |
2869 | 2869 | ||
2870 | l = (void *)__get_free_pages(GFP_KERNEL, order); | 2870 | l = (void *)__get_free_pages(GFP_ATOMIC, order); |
2871 | 2871 | ||
2872 | if (!l) | 2872 | if (!l) |
2873 | return 0; | 2873 | return 0; |