[PATCH 12/12] mm: change the contract for free_pgtables(), update docs

Lorenzo Stoakes (ARM) ljs at kernel.org
Tue Sep 8 04:29:46 PDT 2026


On Mon, Sep 07, 2026 at 09:53:43AM -0700, Suren Baghdasaryan wrote:
> On Tue, Sep 1, 2026 at 10:25 AM Lorenzo Stoakes (ARM) <ljs at kernel.org> wrote:
> > > > So, maybe something like:
> > > >
> > > >  * Note that free_pgtables(), used after unampping detached vmas, or when
> > > >  * exiting the whoel mm, does not take a page table lock before freeing a page
> > > >  * table.
> > > >  *
> > > >  * As page table freeing itself is RCU-safe, page table readers can safely run
> > > >  * concurrently with page table teardown. However, writers cannot, as without
> > > >  * a lock nothing prevents concurrent teardown.
> > > >  */
> > > >
> > > > Instead? What do you think?
> > >
> > > s/whoel/whole/
> >
> > Haha yup the inevitable typo...
>
> Also s/unampping/unmapping please.

Ack will fix on respin! I am the typo master ;)

--
Cheers, Lorenzo



More information about the linux-riscv mailing list