Message ID | 20221107161740.144456-1-david@redhat.com |
---|---|
Headers | show |
Series | mm/gup: remove FOLL_FORCE usage from drivers (reliable R/O long-term pinning) | expand |
On 07.11.22 18:27, Linus Torvalds wrote: > On Mon, Nov 7, 2022 at 8:18 AM David Hildenbrand <david@redhat.com> 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.
On Mon, Nov 07, 2022 at 09:27:23AM -0800, Linus Torvalds wrote: > And I'd really love to just have this long saga ended, and FOLL_FORCE > finally relegated to purely ptrace accesses. At that point we should also rename it to FOLL_PTRACE to make that very clear, and also break anything in-flight accidentally readding it, which I'd otherwise expect to happen.
On 14.11.22 07:03, Christoph Hellwig wrote: > On Mon, Nov 07, 2022 at 09:27:23AM -0800, Linus Torvalds wrote: >> And I'd really love to just have this long saga ended, and FOLL_FORCE >> finally relegated to purely ptrace accesses. > > At that point we should also rename it to FOLL_PTRACE to make that > very clear, and also break anything in-flight accidentally readding it, > which I'd otherwise expect to happen. Good idea; I'll include a patch in v1.