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

From: Yan Zhao
Date: Mon Aug 14 2023 - 04:20:21 EST


On Fri, Aug 11, 2023 at 11:52:53AM -0700, Nadav Amit wrote:
>
> > 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.
Thanks! I'll do in this way when I prepare patches in future :)