powerpc/64s/radix: serialize_against_pte_lookup IPIs trim mm_cpumask
authorNicholas Piggin <npiggin@gmail.com>
Thu, 17 Dec 2020 13:47:30 +0000 (23:47 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 14:09:45 +0000 (01:09 +1100)
commit032b7f08932c9b212952d6d585e45b2941b3e8be
treeb177ec1a30b3623584c124d6957b580afe663ee6
parent9393544842d6c85ebfc387c43a5059f8171d598f
powerpc/64s/radix: serialize_against_pte_lookup IPIs trim mm_cpumask

serialize_against_pte_lookup() performs IPIs to all CPUs in mm_cpumask.
Take this opportunity to try trim the CPU out of mm_cpumask. This can
reduce the cost of future serialize_against_pte_lookup() and/or the
cost of future TLB flushes.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201217134731.488135-7-npiggin@gmail.com
arch/powerpc/mm/book3s64/pgtable.c
arch/powerpc/mm/book3s64/radix_tlb.c