The patch titled Subject: mm: decrease tlb flush pending count in tlb_finish_mmu has been added to the -mm tree. Its filename is mm-fix-madv_-tlb-flush-miss-problem-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-fix-madv_-tlb-flush-miss-problem-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-fix-madv_-tlb-flush-miss-problem-fix.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: Minchan Kim <minchan@xxxxxxxxxx> Subject: mm: decrease tlb flush pending count in tlb_finish_mmu The tlb pending count increased by tlb_gather_mmu should be decreased at tlb_finish_mmu. Otherwise, A lot of TLB happens which makes performance regression. Link: http://lkml.kernel.org/r/20170808080821.GA31730@bbox Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx> Cc: Nadav Amit <nadav.amit@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory.c | 1 + 1 file changed, 1 insertion(+) diff -puN mm/memory.c~mm-fix-madv_-tlb-flush-miss-problem-fix mm/memory.c --- a/mm/memory.c~mm-fix-madv_-tlb-flush-miss-problem-fix +++ a/mm/memory.c @@ -423,6 +423,7 @@ void tlb_finish_mmu(struct mmu_gather *t bool force = mm_tlb_flush_nested(tlb->mm); arch_tlb_finish_mmu(tlb, start, end, force); + dec_tlb_flush_pending(tlb->mm); } /* _ Patches currently in -mm which might be from minchan@xxxxxxxxxx are mm-refactoring-tlb-gathering-api.patch mm-make-tlb_flush_pending-global.patch mm-fix-madv_-tlb-flush-miss-problem.patch mm-fix-madv_-tlb-flush-miss-problem-fix.patch mm-fix-ksm-data-corruption.patch zram-clean-up-duplicated-codes-in-__zram_bvec_write.patch zram-inlining-zram_compress.patch zram-rename-zram_decompress_page-with-__zram_bvec_read.patch zram-add-interface-to-specify-backing-device.patch zram-add-free-space-management-in-backing-device.patch zram-identify-asynchronous-ios-return-value.patch zram-write-incompressible-pages-to-backing-device.patch zram-read-page-from-backing-device.patch zram-add-config-and-doc-file-for-writeback-feature.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