[PATCH v5 12/12] mm: change the contract for free_pgtables(), update docs
David Hildenbrand (Arm)
david at kernel.org
Mon Sep 28 05:06:22 PDT 2026
On 9/25/26 22:09, Lorenzo Stoakes (ARM) wrote:
> Now that page tables are freed after an RCU grace period, it is safe for
> read-only page table walkers to walk page table ranges that are being
> concurrently torn down, provided the mm is kept alive via mmgrab().
>
> It is however unsafe for writers to do so, as they must obtain an
> appropriate lock to do so safely.
>
> Update the pte_offset_map_lock()'s comment block to reflect this.
>
> Similarly update the process addresses documentation.
>
> Acked-by: Kiryl Shutsemau (Meta) <kas at kernel.org>
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs at kernel.org>
> ---
Acked-by: David Hildenbrand (Arm) <david at kernel.org>
--
Cheers,
David
More information about the linux-riscv
mailing list