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

From: David Hildenbrand (Arm)

Date: Mon Nov 30 2026 - 08:31:17 EST


On 11/30/26 14:16, Christoph Hellwig wrote:
> On Thu, Nov 26, 2026 at 02:12:29PM +0100, David Hildenbrand (Arm) wrote:
>> Can you convert this to proper kernel doc while at it?
>>
>> Also this should all be working on folios instead of pages. But that will need a
>> zone_device_folios_have_same_pgmap() so we can defer it, not suitable for this fix.
>
> I don't think the magic fake pages for ZONE_DEVICE mappings are folios
> by any reasonable interpretation.

We discussed that in the past (and I even raised it in some shared LSF/MM
session), and I've been told that ZONE_DEVICE will always be folio based.

> In the long run the bio_vec needs
> to store physical addresses instead, but that's a lot of work, and
> so far no one has volunteered to actually do this.

Ack.

--
Cheers,

David