Re: [RFC PATCH v2 4/5] mm/autonuma: call .numa_protect() when page is protected for NUMA migrate

From: Nadav Amit
Date: Fri Aug 11 2023 - 14:53:09 EST



> On Aug 10, 2023, at 2:00 AM, Yan Zhao <yan.y.zhao@xxxxxxxxx> wrote:
>
> Call mmu notifier's callback .numa_protect() in change_pmd_range() when
> a page is ensured to be protected by PROT_NONE for NUMA migration purpose.

Consider squashing with the previous patch. It’s better to see the user
(caller) with the new functionality.

It would be useful to describe what the expected course of action that
numa_protect callback should take.