x86/mm/tlb: Only send page table free TLB flush to lazy TLB CPUs
authorRik van Riel <[email protected]>
Mon, 16 Jul 2018 19:03:35 +0000 (15:03 -0400)
committerIngo Molnar <[email protected]>
Tue, 17 Jul 2018 07:35:33 +0000 (09:35 +0200)
commit64482aafe55fc7e84d0741c356f8176ee7bde357
tree35f803b840221e2cced8735a1b553124ae7f651d
parentac0315896970d8589291e9d8a1569fc65967b7f1
x86/mm/tlb: Only send page table free TLB flush to lazy TLB CPUs

CPUs in !is_lazy have either received TLB flush IPIs earlier on during
the munmap (when the user memory was unmapped), or have context switched
and reloaded during that stage of the munmap.

Page table free TLB flushes only need to be sent to CPUs in lazy TLB
mode, which TLB contents might not yet be up to date yet.

Tested-by: Song Liu <[email protected]>
Signed-off-by: Rik van Riel <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/mm/tlb.c