Re: [PATCH RFC 00/19] mm/gup: remove FOLL_FORCE usage from drivers (reliable R/O long-term pinning)

From: David Hildenbrand
Date: Tue Nov 08 2022 - 04:30:27 EST


On 07.11.22 18:27, Linus Torvalds wrote:
On Mon, Nov 7, 2022 at 8:18 AM David Hildenbrand <david@xxxxxxxxxx> wrote:

So instead, make R/O long-term pinning work as expected, by breaking COW
in a COW mapping early, such that we can remove any FOLL_FORCE usage from
drivers.

Nothing makes me unhappy from a quick scan through these patches.

And I'd really love to just have this long saga ended, and FOLL_FORCE
finally relegated to purely ptrace accesses.

So an enthusiastic Ack from me.

Thanks Linus! My hope is that we can remove it from all drivers and not have to leave it in for some corner cases; so far it looks promising.

--
Thanks,

David / dhildenb