Skip to content

Commit bd1b167

Browse files
Christoph LameterLinus Torvalds
authored andcommitted
[PATCH] Guarantee that the uncached allocator gets pages on the correct node
The uncached allocator manages per node pools. Specify __GFP_THISNODE in order to force allocation on the indicated node or fail. The uncached allocator has already logic to deal with failing allocations. Signed-off-by: Christoph Lameter <clameter@sgi.com> Cc: Andy Whitcroft <apw@shadowen.org> Cc: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 3d99cfb commit bd1b167

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/ia64/kernel/uncached.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid)
9898

9999
/* attempt to allocate a granule's worth of cached memory pages */
100100

101-
page = alloc_pages_node(nid, GFP_KERNEL | __GFP_ZERO,
101+
page = alloc_pages_node(nid, GFP_KERNEL | __GFP_ZERO |
102+
__GFP_THISNODE | __GFP_NORETRY | __GFP_NOWARN,
102103
IA64_GRANULE_SHIFT-PAGE_SHIFT);
103104
if (!page) {
104105
mutex_unlock(&uc_pool->add_chunk_mutex);

0 commit comments

Comments
 (0)