On 2/3/2023 4:45 PM, Peter Zijlstra wrote:[...]>>> diff --git a/mm/memory.c b/mm/memory.c
On Wed, Feb 01, 2023 at 01:32:21PM +0530, Raghavendra K T wrote:
index 8c8420934d60..2ec3045cb8b3 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -4718,6 +4718,7 @@ static vm_fault_t do_numa_page(struct vm_fault *vmf)
bool was_writable = pte_savedwrite(vmf->orig_pte);
int flags = 0;
+ vma_set_active_pid_bit(vma);
/*
* The "pte" at this point cannot be used safely without
* validation through pte_unmap_same(). It's of NUMA type but
Urghh... do_*numa_page() is two near identical functions.. is there
really no sane way to de-duplicate at least some of that?
Agree. I will explore and will take that as a separate TODO.