Re: [PATCH 1/1] mm/khugepaged: keep mm in mm_slot without MMF_DISABLE_THP check

From: David Hildenbrand
Date: Tue Feb 27 2024 - 14:30:45 EST


On 27.02.24 20:13, Yang Shi wrote:
On Mon, Feb 26, 2024 at 7:51 PM Lance Yang <ioworker0@xxxxxxxxx> wrote:

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().

Fixes: 879c6000e191 ("mm/khugepaged: bypassing unnecessary scans with MMF_DISABLE_THP check")

I think Andrew will fold this fix into your original patch.


Unlikely, it's already in mm-stable.

Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>

--
Cheers,

David / dhildenb