Subject: + mm-dont-call-mmu_notifier_invalidate_page-during-munlock.patch added to -mm tree To: koct9i@xxxxxxxxx,riel@xxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Wed, 28 May 2014 16:10:03 -0700 The patch titled Subject: mm/rmap.c: don't call mmu_notifier_invalidate_page() during munlock has been added to the -mm tree. Its filename is mm-dont-call-mmu_notifier_invalidate_page-during-munlock.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-dont-call-mmu_notifier_invalidate_page-during-munlock.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-dont-call-mmu_notifier_invalidate_page-during-munlock.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: Konstantin Khlebnikov <koct9i@xxxxxxxxx> Subject: mm/rmap.c: don't call mmu_notifier_invalidate_page() during munlock In its munmap mode, try_to_unmap_one() searches other mlocked vmas, it never unmaps pages. There is no reason for invalidation because ptes are left unchanged. Signed-off-by: Konstantin Khlebnikov <koct9i@xxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/rmap.c~mm-dont-call-mmu_notifier_invalidate_page-during-munlock mm/rmap.c --- a/mm/rmap.c~mm-dont-call-mmu_notifier_invalidate_page-during-munlock +++ a/mm/rmap.c @@ -1246,7 +1246,7 @@ static int try_to_unmap_one(struct page out_unmap: pte_unmap_unlock(pte, ptl); - if (ret != SWAP_FAIL) + if (ret != SWAP_FAIL && TTU_ACTION(flags) != TTU_MUNLOCK) mmu_notifier_invalidate_page(mm, address); out: return ret; _ Patches currently in -mm which might be from koct9i@xxxxxxxxx are tools-vm-page-typesc-catch-sigbus-if-raced-with-truncate.patch mm-process_vm_access-move-config-option-into-init-kconfig.patch mm-dont-call-mmu_notifier_invalidate_page-during-munlock.patch linux-next.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