Thread (8 messages) 8 messages, 4 authors, 2017-08-01

Re: [PATCH v5 3/3] Revert "mm: numa: defer TLB flush for THP migration as long as possible"

From: Rik van Riel <hidden>
Date: 2017-08-01 11:05:48

On Mon, 2017-07-31 at 09:43 -0700, Nadav Amit wrote:
While deferring TLB flushes is a good practice, the reverted patch
caused pending TLB flushes to be checked while the page-table lock is
not taken. As a result, in architectures with weak memory model
(PPC),
Linux may miss a memory-barrier, miss the fact TLB flushes are
pending,
and cause (in theory) a memory corruption.

Since the alternative of using smp_mb__after_unlock_lock() was
considered a bit open-coded, and the performance impact is expected
to
be small, the previous patch is reverted.

This reverts commit b0943d61b8fa420180f92f64ef67662b4f6cc493.

Suggested-by: Mel Gorman <mgorman@suse.de>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Sergey Senozhatsky <redacted>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Rik van Riel <redacted>
Signed-off-by: Nadav Amit <redacted>
Acked-by: Rik van Riel <redacted>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help