commit | 95f183916d4b0bc1943684948ecdd2469f1aa978 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Jan 09 23:40:57 2018 +0100 |
committer | Christoph Hellwig <hch@lst.de> | Mon Jan 15 09:35:13 2018 +0100 |
tree | 4f35e71033398e1ac96e90454a84f1ad2402492e | |
parent | c61e9637340e1d0672c6f0c0b11aa81d7262c49d [diff] |
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: Christoph Hellwig <hch@lst.de>