The patch titled mm/apply_to_range: call pte function with lazy updates has been added to the -mm tree. Its filename is mm-apply_to_range-call-pte-function-with-lazy-updates.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 *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm/apply_to_range: call pte function with lazy updates From: Jeremy Fitzhardinge <jeremy@xxxxxxxx> Make the pte-level function in apply_to_range be called in lazy mmu mode, so that any pagetable modifications can be batched. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx> Cc: Venkatesh Pallipadi <venkatesh.pallipadi@xxxxxxxxx> Cc: Hugh Dickins <hugh@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN mm/memory.c~mm-apply_to_range-call-pte-function-with-lazy-updates mm/memory.c --- a/mm/memory.c~mm-apply_to_range-call-pte-function-with-lazy-updates +++ a/mm/memory.c @@ -1564,6 +1564,8 @@ static int apply_to_pte_range(struct mm_ BUG_ON(pmd_huge(*pmd)); + arch_enter_lazy_mmu_mode(); + token = pmd_pgtable(*pmd); do { @@ -1572,6 +1574,8 @@ static int apply_to_pte_range(struct mm_ break; } while (pte++, addr += PAGE_SIZE, addr != end); + arch_leave_lazy_mmu_mode(); + if (mm != &init_mm) pte_unmap_unlock(pte-1, ptl); return err; _ Patches currently in -mm which might be from jeremy@xxxxxxxx are linux-next.patch mm-implement-remap_pfn_range-with-apply_to_page_range.patch mm-apply_to_range-call-pte-function-with-lazy-updates.patch mm-remap_pfn_range-restore-missing-flush.patch drivers-xen-xenbus-xenbus_clientc-cleanup-kerneldoc.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