diff options
author | Peter Zijlstra <peterz@infradead.org> | 2018-08-22 17:30:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-09 20:01:23 +0200 |
commit | 04d1d58c274996163c7c7d659336cedbade30761 (patch) | |
tree | 5f2b06e72e613764034c7e538f469c83e1807036 /lib/scatterlist.c | |
parent | 7c439bc2220d624fc7edba4c9bdc1d65b4f47f26 (diff) | |
download | linux-stable-04d1d58c274996163c7c7d659336cedbade30761.tar.gz linux-stable-04d1d58c274996163c7c7d659336cedbade30761.tar.bz2 linux-stable-04d1d58c274996163c7c7d659336cedbade30761.zip |
mm/tlb: Remove tlb_remove_table() non-concurrent condition
commit a6f572084fbee8b30f91465f4a085d7a90901c57 upstream.
Will noted that only checking mm_users is incorrect; we should also
check mm_count in order to cover CPUs that have a lazy reference to
this mm (and could do speculative TLB operations).
If removing this turns out to be a performance issue, we can
re-instate a more complete check, but in tlb_table_flush() eliding the
call_rcu_sched().
Fixes: 267239116987 ("mm, powerpc: move the RCU page-table freeing into generic code")
Reported-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Rik van Riel <riel@surriel.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: David Miller <davem@davemloft.net>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/scatterlist.c')
0 files changed, 0 insertions, 0 deletions