Skip to contentSkip to conversation

mm-dont-call-mmu_notifier_invalidate_page-during-munlock.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 5, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-dont-call-mmu_notifier_invalidate_page-during-munlock.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 05 Jun 2014 12:53:25 -0700

The patch titled
Subject: mm/rmap.c: don't call mmu_notifier_invalidate_page() during munlock
has been removed from the -mm tree. Its filename was
mm-dont-call-mmu_notifier_invalidate_page-during-munlock.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Konstantin Khlebnikov <[email protected]>
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.

---

 mm/rmap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/rmap.c renamed from mm/rmap.c~mm-dont-call-mmu_notifier_invalidate_page-during-munlock +1 -1
diff -puN mm/rmap.c~mm-dont-call-mmu_notifier_invalidate_page-during-munlock mm/rmap.c
@@ -1252,7 +1252,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 [email protected] are

origin.patch
linux-next.patch