Re: [RFC PATCH] block, fs: use FOLL_LONGTERM as gup_flags for direct IO

From: Bart Van Assche
Date: Wed Mar 12 2025 - 12:03:36 EST


On 3/12/25 8:52 AM, Christoph Hellwig wrote:
I'd still like to understand what the use case is. Who does CMA
allocation at a time where heavy direct I/O is in progress?

An additional question: why is contiguous memory allocated? Is this
perhaps because the allocated memory will be used for DMA? If so,
can the SMMU be used to make it appear contiguous to DMA clients?

Thanks,

Bart.