Thread (35 messages) 35 messages, 5 authors, 19d ago

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

From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
Date: 2026-09-08 11:30:12
Also in: linux-alpha, linux-m68k, linux-mips, linux-mm, linux-riscv, linux-s390, linux-sh, linux-um, linuxppc-dev, lkml, loongarch, sparclinux

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) [off-list ref] wrote:
quoted
quoted
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help