Re: [PATCH v2] mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
From: Andrew Morton
Date: Mon Oct 19 2026 - 13:43:57 EST
On Mon, 19 Oct 2026 13:19:45 +0100 "Lorenzo Stoakes (ARM)" <ljs@xxxxxxxxxx> wrote:
> On Mon, Oct 19, 2026 at 10:53:27AM +0100, Pedro Falcato wrote:
> > On Fri, Oct 16, 2026 at 12:34:33PM +0100, Lorenzo Stoakes (ARM) wrote:
>
> > > So I think it's fine to just send it (early :) in the merge window.
> > > ---
> > > v2:
> > > * Updated comment in vma_seqcount_is_write_locked() to mention the VMA
> > > being attached.
> > > * Renamed reset_vma_seqcounts() to __mm_reset_vma_seqcounts().
> > > * Used acquire semantics in vma_start_reads() to avoid race with reset -
> > > there is another acquire immediately after this one so it should just be
> > > noise perf-wise.
> > > * Removed stable tag, will do the backports manually (just make the value
> > > 64 bits...)
> >
> > I guess you're fitting this where __vm_anon_pgoff_lo now sits? If so, then
> > this patch probably wants backporting to 7.3.
>
> Ack.
I added cc:stable to the mm.git copy of this.