Re: [PATCH RFC 0/5] mm: GUP dirty + ->release_folio() fixes
From: David Hildenbrand (Arm)
Date: Thu Nov 26 2026 - 01:44:04 EST
On 11/26/26 03:24, Tal Zussman wrote:
> +CC Miklos
>
> On 11/25/26 5:19 AM, David Hildenbrand (Arm) wrote:
>> On 11/25/26 11:05, Christoph Hellwig wrote:
>>>
>>> We need to, if not for this series then for all the other outstanding
>>> issues with GUP writes.
>>
>> Cool, and I agree (that's why I placed it at 1).
>>
>> But who is "we"? Because I recall that "we" wanted to do that a while ago.
>>
>> (I won't be "we" ;) Pedro, can you take a look? I'm afraid the fuse thing might
>> be the harder nut to crack)
>
> Coincidentally, I sent out a patch to convert fuse_copy_fill() to use
> iov_iter_extract_pages() a few days ago in order to remove its usage of
> set_page_dirty_lock() and address a different race. I think it should
> address the fuse side of this issue as well.
>
> https://lore.kernel.org/all/20261120-fuse-copy-fill-pin-v1-1-72a0d888f140@xxxxxxxxxxxx/
Oh, nice! I was assuming the usual "we use put_page() on some random hidden path
or core code" would make that harder. I recall that's the reason why vmsplice
still uses FOLL_GET years after we discussed that it should be using
FOLL_PIN|FOLL_LONGTERM.
--
Cheers,
David