diff options
| author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2026-05-12 18:15:23 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-06-03 01:22:33 +0300 |
| commit | f30462fc7d2370761b84eaf5b3ed84a03bdf3266 (patch) | |
| tree | 7b66fdb492e5ce5f761a4cdae7e0390188409382 /include/linux/errqueue.h | |
| parent | a10848d98ec9c5372a979d7aa91a8b8fe50fd8f8 (diff) | |
| download | linux-f30462fc7d2370761b84eaf5b3ed84a03bdf3266.tar.xz | |
mm/damon/vaddr: attempt per-vma lock during page table walk
Currently, DAMON virtual address operations use mmap_read_lock during page
table walks, which can cause unnecessary contention under high
concurrency.
Introduce damon_va_walk_page_range() to first attempt acquiring a per-vma
lock. If the VMA is found and the range is fully contained within it, the
page table walk proceeds with the per-vma lock instead of mmap_read_lock.
This optimization is expected to be particularly effective for
damon_va_young() and damon_va_mkold(), which are frequently called and
typically operate within a single VMA.
Link: https://lore.kernel.org/20260512151523.2092638-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Nanyong Sun <sunnanyong@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
