aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/mlock.c
diff options
context:
space:
mode:
authorLance Yang <ioworker0@gmail.com>2024-02-27 11:51:35 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-03-04 17:01:22 -0800
commit5dad604809c5acc546ec74057498db1623f1c408 (patch)
treeba5728b8812247d0a41b342cb5f8bc06e49042e9 /mm/mlock.c
parentlib/test_vmalloc.c: use unsigned long constant (diff)
downloadwireguard-linux-5dad604809c5acc546ec74057498db1623f1c408.tar.xz
wireguard-linux-5dad604809c5acc546ec74057498db1623f1c408.zip
mm/khugepaged: keep mm in mm_slot without MMF_DISABLE_THP check
Previously, we removed the mm from mm_slot and dropped mm_count if the MMF_THP_DISABLE flag was set. However, we didn't re-add the mm back after clearing the MMF_THP_DISABLE flag. Additionally, We add a check for the MMF_THP_DISABLE flag in hugepage_vma_revalidate(). Link: https://lkml.kernel.org/r/20240227035135.54593-1-ioworker0@gmail.com Fixes: 879c6000e191 ("mm/khugepaged: bypassing unnecessary scans with MMF_DISABLE_THP check") Signed-off-by: Lance Yang <ioworker0@gmail.com> Suggested-by: Yang Shi <shy828301@gmail.com> Reviewed-by: Yang Shi <shy828301@gmail.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Michal Hocko <mhocko@suse.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Muchun Song <songmuchun@bytedance.com> Cc: Peter Xu <peterx@redhat.com> Cc: Zach O'Keefe <zokeefe@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/mlock.c')
0 files changed, 0 insertions, 0 deletions