From: Lorenzo Stoakes <ljs@kernel.org>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: Rik van Riel <riel@surriel.com>,
linux-kernel@vger.kernel.org, x86@kernel.org,
linux-mm@kvack.org, Thomas Gleixner <tglx@kernel.org>,
Ingo Molnar <mingo@redhat.com>, Dmitry Ilvokhin <d@ilvokhin.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
"Liam R. Howlett" <liam@infradead.org>,
Vlastimil Babka <vbabka@kernel.org>,
Suren Baghdasaryan <surenb@google.com>,
kernel-team@meta.com
Subject: Re: [PATCH v2 0/3] mm: __access_remote_vm with per-VMA lock
Date: Sat, 27 Jun 2026 08:09:45 +0100 [thread overview]
Message-ID: <aj92U3McDAoKNeMB@lucifer> (raw)
In-Reply-To: <05538f68-c3ec-422d-babb-7427068f79f4@kernel.org>
On Fri, Jun 26, 2026 at 10:33:19PM +0200, David Hildenbrand (Arm) wrote:
> On 6/25/26 13:22, Rik van Riel wrote:
> > On Thu, 2026-06-25 at 08:32 +0200, David Hildenbrand (Arm) wrote:
> >> On 6/25/26 03:50, Rik van Riel wrote:
> >>>
> >>> v2:
> >>> - simplify the code, which should be ok because these copies are <
> >>> PAGE_SIZE
> >>> - clean up the code
> >>> - fix locking wrt tlb_remove_table_sync_one()
> >>> - hopefully address all the other comments
> >>
> >> You mean, ignoring my comments about not reiplementing GUP entirely?
> >>
> >> NAK
> >
> > Do we actually have a path to doing that?
>
> Well, I know what we do not want to reimplement GUP in some GUP users unless
> really unavoidable. And I want that explored first before moving further into
> this growing complexity in a GUP users.
>
> >
> > I misread that as more of a wish list thing, not
> > as something we could realistically do today.
>
> I really don't know how you concluded that.
>
> I mean, I know, my English is bad, but it's hard for me to get how
>
> "Yeah, we're not doing that unless inevitable."
>
> is a wish list.
>
> Yeah, well, ok, my kids treat also a "no" as a wish list ;)
>
> >
> > How would I go about making that mmap_lock-less
> > GUP a reality?
> >
> > What are the prerequisites?
>
> Did you actually read at least some of the stuff I wrote in my mails? You know,
> the ones where you didn't reply to? :)
>
> Seeing a v2 with some weird gup-fast-like looking reimplementatiom (eww) is not
> something I enjoyed at this point. We don't need another set of special page
> table walkers.
>
> We really need someone to look into this with some GUP experience or the
> willingness to properly think the GUP lookup+fault path through, instead of
> adding some creative workarounds to selective GUP user.
>
> I will try to find some time to think it through, but my time would be better
> spent guiding someone (and definitely not someones LLM) to understand
>
> (1) which interface we could start with (as I said, a GUP interface where we
> pass a VMA-lcoked / mm-read-lcoked VMA instead of the MM)
>
> (2) which faults we could automatically resolve under VMA lock (I mentioned
> userfaultfd is tricky but the existing GUP call already doesn't trigger uffd)
>
> (3) whether gup-fast could be reused to some degree, or what it would take in
> order to do that.
>
> --
> Cheers,
>
> David
I agree with everything David said here.
In general Rik do make sure to engage with reviewers during the review and reply
to points raised so we can have a healthy discussion (I see you replied to me
thanks for that! So hopefully this is now resolved).
It'll save you going off and doing X, Y + Z in contradiction of comments you
perhaps missed or felt were nice-to-haves, only to find that they
were in fact critical blockers that prevent your series from being merged.
With review workload as it is this not only saves you time, stress + energy, but
saves your reviewers from the same :)
Generally if there's feedback, response to all of it is expected and really
required, albeit obviously for reasons of economy an aggregrate response or
implied acks on nits are fine.
Thanks, Lorenzo
next prev parent reply other threads:[~2026-06-27 7:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-25 1:50 [PATCH v2 0/3] mm: __access_remote_vm with per-VMA lock Rik van Riel
2026-06-25 1:50 ` [PATCH 1/3] x86/mm: use READ_ONCE/WRITE_ONCE for mm->context.untag_mask Rik van Riel
2026-06-25 1:50 ` [PATCH 2/3] mm/pagewalk: let folio_walk_start() run under the per-VMA lock Rik van Riel
2026-06-25 7:34 ` Lorenzo Stoakes
2026-06-25 11:20 ` Rik van Riel
2026-06-25 1:50 ` [PATCH 3/3] mm: read remote memory without the mmap lock where possible Rik van Riel
2026-06-25 7:39 ` Lorenzo Stoakes
2026-06-25 6:32 ` [PATCH v2 0/3] mm: __access_remote_vm with per-VMA lock David Hildenbrand (Arm)
2026-06-25 7:47 ` Lorenzo Stoakes
2026-06-25 11:22 ` Rik van Riel
2026-06-26 20:33 ` David Hildenbrand (Arm)
2026-06-26 22:55 ` Rik van Riel
2026-06-27 7:09 ` Lorenzo Stoakes [this message]
2026-06-27 8:59 ` Lorenzo Stoakes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aj92U3McDAoKNeMB@lucifer \
--to=ljs@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=d@ilvokhin.com \
--cc=dave.hansen@linux.intel.com \
--cc=david@kernel.org \
--cc=kernel-team@meta.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@redhat.com \
--cc=riel@surriel.com \
--cc=surenb@google.com \
--cc=tglx@kernel.org \
--cc=vbabka@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.