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

From: David Hildenbrand (Arm)

Date: Mon Sep 28 2026 - 08:18:58 EST


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@xxxxxxxxxx>
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
> ---

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David