Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98116
b: refs/heads/master
c: db9f600
h: refs/heads/master
v: v3
  • Loading branch information
Miquel van Smoorenburg authored and Ingo Molnar committed Jun 2, 2008
1 parent 8cd412f commit fea30f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75b19b790bec3ebffbf513405b27500e22270cbc
refs/heads/master: db9f600b96c16bb3c7f094e294fbdd370226ad86
7 changes: 3 additions & 4 deletions trunk/arch/x86/kernel/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,6 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
if (dev->dma_mask == NULL)
return NULL;

/* Don't invoke OOM killer */
gfp |= __GFP_NORETRY;

#ifdef CONFIG_X86_64
/* Why <=? Even when the mask is smaller than 4GB it is often
larger than 16MB and in this case we have a chance of
Expand All @@ -410,7 +407,9 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
#endif

again:
page = dma_alloc_pages(dev, gfp, get_order(size));
/* Don't invoke OOM killer or retry in lower 16MB DMA zone */
page = dma_alloc_pages(dev,
(gfp & GFP_DMA) ? gfp | __GFP_NORETRY : gfp, get_order(size));
if (page == NULL)
return NULL;

Expand Down

0 comments on commit fea30f3

Please sign in to comment.