Skip to contentSkip to conversation

+ mm-tlb_fast_mode-check-missing-in-tlb_finish_mmu.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jun 3, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-tlb_fast_mode-check-missing-in-tlb_finish_mmu.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 03 Jun 2013 15:20:06 -0700

The patch titled
Subject: mm: tlb_fast_mode check missing in tlb_finish_mmu()
has been added to the -mm tree. Its filename is
mm-tlb_fast_mode-check-missing-in-tlb_finish_mmu.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: Vineet Gupta <[email protected]>
Subject: mm: tlb_fast_mode check missing in tlb_finish_mmu()

This removes some unused generated code for tlb_fast_mode() == true

Cc Mel Gorman <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Rik van Riel <[email protected]>
Cc David Rientjes <[email protected]>
Cc Peter Zijlstra <[email protected]>

---

 mm/memory.c |    3 +++
 1 file changed, 3 insertions(+)
mm/memory.c renamed from mm/memory.c~mm-tlb_fast_mode-check-missing-in-tlb_finish_mmu +3 -0
diff -puN mm/memory.c~mm-tlb_fast_mode-check-missing-in-tlb_finish_mmu mm/memory.c
@@ -267,6 +267,9 @@ void tlb_finish_mmu(struct mmu_gather *t
 	/* keep the page table cache within bounds */
 	check_pgt_cache();
 
+	if (tlb_fast_mode(tlb))
+		return;
+
 	for (batch = tlb->local.next; batch; batch = next) {
 		next = batch->next;
 		free_pages((unsigned long)batch, 0);

_

Patches currently in -mm which might be from [email protected] are

mm-fix-the-tlb-range-flushed-when-__tlb_remove_page-runs-out-of-slots.patch mm-tlb_fast_mode-check-missing-in-tlb_finish_mmu.patch