diff options
author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2024-01-26 04:25:48 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-08 06:20:35 +0100 |
commit | 4c2da3188b848d33c26d7f0f8b14f3150331c923 (patch) | |
tree | 731056e82135234dfb0b2dca986b7f1f4444698a /mm/madvise.c | |
parent | arch/arm/mm: fix major fault accounting when retrying under per-VMA lock (diff) | |
download | linux-4c2da3188b848d33c26d7f0f8b14f3150331c923.tar.xz linux-4c2da3188b848d33c26d7f0f8b14f3150331c923.zip |
mm/madvise: don't forget to leave lazy MMU mode in madvise_cold_or_pageout_pte_range()
We need to leave lazy MMU mode before unlocking.
Link: https://lkml.kernel.org/r/20240126032608.355899-1-senozhatsky@chromium.org
Fixes: b2f557a21bc8 ("mm/madvise: add cond_resched() in madvise_cold_or_pageout_pte_range()")
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Jiexun Wang <wangjiexun@tinylab.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/madvise.c')
-rw-r--r-- | mm/madvise.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/madvise.c b/mm/madvise.c index 912155a94ed5..cfa5e7288261 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -429,6 +429,7 @@ restart: if (++batch_count == SWAP_CLUSTER_MAX) { batch_count = 0; if (need_resched()) { + arch_leave_lazy_mmu_mode(); pte_unmap_unlock(start_pte, ptl); cond_resched(); goto restart; |