Re: [PATCH 2/4] x86_64: fix dma_alloc_pages v2

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Yinghai Lu
Date: Wednesday, February 20, 2008 - 3:07 am

please use this one instead.

because v1 already in mm, and that doesn't depends on 1/4 here.

[PATCH 2/4] x86_64: fix dma_alloc_pages fix

this patch will use updated dev_to node, because dev_to_node already make sure
it have node online

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/arch/x86/kernel/pci-dma_64.c b/arch/x86/kernel/pci-dma_64.c
index 931b51a..375cb2b 100644
--- a/arch/x86/kernel/pci-dma_64.c
+++ b/arch/x86/kernel/pci-dma_64.c
@@ -53,8 +53,6 @@ dma_alloc_pages(struct device *dev, gfp_t gfp, unsigned order)
 	int node;
 
 	node = dev_to_node(dev);
-	if (node == -1 || !node_online(node))
-		node = numa_node_id();
 
 	page = alloc_pages_node(node, gfp, order);
 	return page ? page_address(page) : NULL;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/4] make dev_to_node return online node, Yinghai Lu, (Wed Feb 20, 1:32 am)
[PATCH 2/4] x86_64: fix dma_alloc_pages v2, Yinghai Lu, (Wed Feb 20, 1:36 am)
Re: [PATCH 2/4] x86_64: fix dma_alloc_pages v2, Yinghai Lu, (Wed Feb 20, 3:07 am)
Re: [PATCH 1/4] make dev_to_node return online node, Yinghai Lu, (Wed Feb 20, 1:41 pm)