Skip to content
Commit 95f18391 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

dma-direct: retry allocations using GFP_DMA for small masks



If an attempt to allocate memory succeeded, but isn't inside the
supported DMA mask, retry the allocation with GFP_DMA set as a
last resort.

Based on the x86 code, but an off by one error in what is now
dma_coherent_ok has been fixed vs the x86 code.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent c61e9637
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment