Re: [rfc 3/6] dma-remap: wire up the atomic pools depending on gfp mask

From: Christoph Hellwig
Date: Thu Mar 05 2020 - 10:43:15 EST


On Sun, Mar 01, 2020 at 04:05:16PM -0800, David Rientjes wrote:
>
> When allocating non-blockable memory, determine the optimal gfp mask of
> the device and use the appropriate atomic pool.
>
> The coherent DMA mask will remain the same between allocation and free
> and, thus, memory will be freed to the same atomic pool it was allocated
> from.

I think this should go into the previous patch, as it is rather pointless
without the changes in this one.