Re: [PATCH v2 6/7] mm/khugepaged: unmap pte before releasing vma write lock

From: David Hildenbrand (Arm)

Date: Wed Jul 29 2026 - 06:29:13 EST


On 7/15/26 04:59, Nico Pache wrote:
> We are currently dropping the anon_vma write lock before unmapping the
> PTE. Although this is safe, due to us still holding the mmap_write_lock,
> its safer and less confusing to switch the order of these two operations.
>
> Suggested-by: David Hildenbrand <david@xxxxxxxxxx>
> Signed-off-by: Nico Pache <npache@xxxxxxxxxx>
> ---

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

--
Cheers,

David