Re: [PATCH] mm/damon/vaddr: drop redundant mmap_read_lock from damon_va_three_regions
From: SeongJae Park
Date: Sun Jun 07 2026 - 13:37:15 EST
Hello Cunlong,
On Sun, 07 Jun 2026 21:48:52 +0800 Cunlong Li <shenxiaogll@xxxxxxxxx> wrote:
> __damon_va_three_regions() already walks VMAs under rcu_read_lock(), so
> the outer mmap_read_lock() is no longer needed.
The function aims to read a snapshot of the virtual address space. So I think
mmap_read_lock() is still required. Please let me know if I'm missing
something.
Thanks,
SJ
[...]