lkml.org 
[lkml]   [2008]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] x86: use __GFP_NORETRY in the case of GFP_DMA with pci-nommu
Date
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
---
arch/x86/kernel/pci-nommu.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/pci-nommu.c b/arch/x86/kernel/pci-nommu.c
index 526b2db..3495f88 100644
--- a/arch/x86/kernel/pci-nommu.c
+++ b/arch/x86/kernel/pci-nommu.c
@@ -102,6 +102,9 @@ nommu_alloc_coherent(struct device *hwdev, size_t size,
if (dma_mask == DMA_24BIT_MASK)
gfp |= GFP_DMA;
again:
+ if (gfp & GFP_DMA)
+ gfp |= __GFP_NORETRY;
+
page = alloc_pages_node(node, gfp, get_order(size));
if (!page)
return NULL;
--
1.5.4.2


\
 
 \ /
  Last update: 2008-09-05 11:05    [W:0.069 / U:1.960 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site