diff options
author | Andi Kleen <ak@suse.de> | 2006-03-25 10:30:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 12:10:55 -0500 |
commit | 3056d6be19b50cbd3f0290e816d702cc3e54a6f3 (patch) | |
tree | f23c61a35202b554d2be8ff1ee6c1a5ac9ab8856 /arch/x86_64/kernel | |
parent | 554d284ba90bc2306c31e5363789f05c320969c3 (diff) |
[PATCH] x86_64: Don't invoke OOM killer during dma_alloc_coherent()
There is a fallback logic, so it's better to not use the OOM killer
in the allocations.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/kernel')
-rw-r--r-- | arch/x86_64/kernel/pci-dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/pci-dma.c b/arch/x86_64/kernel/pci-dma.c index 4ed391edd47a..03c9eeedb0f3 100644 --- a/arch/x86_64/kernel/pci-dma.c +++ b/arch/x86_64/kernel/pci-dma.c | |||
@@ -73,6 +73,9 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, | |||
73 | if (dma_mask == 0) | 73 | if (dma_mask == 0) |
74 | dma_mask = 0xffffffff; | 74 | dma_mask = 0xffffffff; |
75 | 75 | ||
76 | /* Don't invoke OOM killer */ | ||
77 | gfp |= __GFP_NORETRY; | ||
78 | |||
76 | /* Kludge to make it bug-to-bug compatible with i386. i386 | 79 | /* Kludge to make it bug-to-bug compatible with i386. i386 |
77 | uses the normal dma_mask for alloc_coherent. */ | 80 | uses the normal dma_mask for alloc_coherent. */ |
78 | dma_mask &= *dev->dma_mask; | 81 | dma_mask &= *dev->dma_mask; |