Re: [PATCH] iov_iter: Fix direct I/O across compatible device pgmaps

From: Naman Jain

Date: Mon Nov 30 2026 - 23:50:18 EST




On 11/30/2026 6:57 PM, David Hildenbrand (Arm) wrote:
On 11/30/26 14:18, Christoph Hellwig wrote:
On Sun, Nov 29, 2026 at 11:32:20AM +0100, David Hildenbrand (Arm) wrote:
Yeah, can we rename the function while moving it? in bio.h the "bio" context was
quite clear. In memremap.h it's a bit weird.

If this is all about bios, I'd squeeze that into the filename and make it
clearer for *what* they are compatible.

This is not about bios at all. And despite the extremely misleading
subject it also has nothing to do with direct I/O at all. Fundamentally
is is about dma mapping, as each incompatible pgmap or pgmap vs non-pgmap
pages can't be mapped in the same IOMMU transaction.

Okay, then let's capture that in the comment and ideally the the function name.


Thanks. I'll rename the helper to zone_device_pages_dma_compatible() and
update the kernel-doc to explain which pages can be DMA-mapped
together and why.

I'll use the subject:

iov_iter: Allow DMA-compatible device pages in bvec extraction

I'll also update the commit message accordingly, keeping direct I/O as
the example of the failure.

Regards,
Naman