+ mm-actually-clear-pmd_numa-before-invalidating.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm: actually clear pmd_numa before invalidating
has been added to the -mm tree.  Its filename is
     mm-actually-clear-pmd_numa-before-invalidating.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-actually-clear-pmd_numa-before-invalidating.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-actually-clear-pmd_numa-before-invalidating.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: Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>
Subject: mm: actually clear pmd_numa before invalidating

Commit 67f87463d3 ("mm: clear pmd_numa before invalidating") cleared the
NUMA bit in a copy of the PMD entry, but then wrote back the original

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>
Cc: Mel Gorman <mgorman@xxxxxxx>
Cc: Rik van Riel <riel@xxxxxxxxxx>
Cc: <stable@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/pgtable-generic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/pgtable-generic.c~mm-actually-clear-pmd_numa-before-invalidating mm/pgtable-generic.c
--- a/mm/pgtable-generic.c~mm-actually-clear-pmd_numa-before-invalidating
+++ a/mm/pgtable-generic.c
@@ -195,7 +195,7 @@ void pmdp_invalidate(struct vm_area_stru
 	pmd_t entry = *pmdp;
 	if (pmd_numa(entry))
 		entry = pmd_mknonnuma(entry);
-	set_pmd_at(vma->vm_mm, address, pmdp, pmd_mknotpresent(*pmdp));
+	set_pmd_at(vma->vm_mm, address, pmdp, pmd_mknotpresent(entry));
 	flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
 }
 #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
_

Patches currently in -mm which might be from matthew.r.wilcox@xxxxxxxxx are

mm-actually-clear-pmd_numa-before-invalidating.patch
mm-introduce-do_shared_fault-and-drop-do_fault-fix-fix.patch
do_shared_fault-check-that-mmap_sem-is-held.patch

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]