linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* mm,tlb: revert 4647706ebeee?
@ 2018-07-06 17:03 Rik van Riel
  2018-07-06 17:10 ` [PATCH] Revert "mm: always flush VMA ranges affected by zap_page_range" Rik van Riel
  2018-07-07 15:25 ` mm,tlb: revert 4647706ebeee? Nicholas Piggin
  0 siblings, 2 replies; 6+ messages in thread
From: Rik van Riel @ 2018-07-06 17:03 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org
  Cc: linux-mm@kvack.org, Andrew Morton, Michal Hocko, kirill.shutemov,
	Minchan Kim, Mel Gorman, kernel-team

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]

Hello,

It looks like last summer, there were 2 sets of patches
in flight to fix the issue of simultaneous mprotect/madvise
calls unmapping PTEs, and some pages not being flushed from
the TLB before returning to userspace.

Minchan posted these patches:
56236a59556c ("mm: refactor TLB gathering API")
99baac21e458 ("mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem")

Around the same time, Mel posted:
4647706ebeee ("mm: always flush VMA ranges affected by zap_page_range")

They both appear to solve the same bug.

Only one of the two solutions is needed.

However, 4647706ebeee appears to introduce extra TLB
flushes - one per VMA, instead of one over the entire
range unmapped, and also extra flushes when there are
no simultaneous unmappers of the same mm.

For that reason, it seems like we should revert
4647706ebeee and keep only Minchan's solution in
the kernel.

Am I overlooking any reason why we should not revert
4647706ebeee?

kind regards,

Rik
-- 
All Rights Reversed.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-07-16 13:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06 17:03 mm,tlb: revert 4647706ebeee? Rik van Riel
2018-07-06 17:10 ` [PATCH] Revert "mm: always flush VMA ranges affected by zap_page_range" Rik van Riel
2018-07-16 13:12   ` Mel Gorman
2018-07-07 15:25 ` mm,tlb: revert 4647706ebeee? Nicholas Piggin
2018-07-10  0:13   ` Andrew Morton
2018-07-10  5:04     ` Nicholas Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).