The patch titled Subject: dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3 has been added to the -mm tree. Its filename is dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andi Kleen <ak@xxxxxxxxxxxxxxx> Subject: dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3 v3: Minor updates from Mel. Change code layout. Link: http://lkml.kernel.org/r/1476382117-5440-1-git-send-email-andi@xxxxxxxxxxxxxx Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx> Acked-by: Mel Gorman <mgorman@xxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mprotect.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff -puN mm/mprotect.c~dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3 mm/mprotect.c --- a/mm/mprotect.c~dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3 +++ a/mm/mprotect.c @@ -70,16 +70,16 @@ static unsigned long change_pte_range(st pte_t *pte, oldpte; spinlock_t *ptl; unsigned long pages = 0; - int target_node = -1; + int target_node = NUMA_NO_NODE; pte = lock_pte_protection(vma, pmd, addr, prot_numa, &ptl); if (!pte) return 0; - if (prot_numa && - !(vma->vm_flags & VM_SHARED) && + /* Get target node for single threaded private VMAs */ + if (prot_numa && !(vma->vm_flags & VM_SHARED) && atomic_read(&vma->vm_mm->mm_users) == 1) - target_node = cpu_to_node(raw_smp_processor_id()); + target_node = numa_node_id(); arch_enter_lazy_mmu_mode(); do { _ Patches currently in -mm which might be from ak@xxxxxxxxxxxxxxx are dont-touch-single-threaded-ptes-which-are-on-the-right-node.patch dont-touch-single-threaded-ptes-which-are-on-the-right-node-v3.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html