powerpc/64s: Disable preemption in hash lazy mmu mode
authorNicholas Piggin <npiggin@gmail.com>
Thu, 13 Oct 2022 15:16:45 +0000 (01:16 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 18 Oct 2022 11:46:18 +0000 (22:46 +1100)
commitb9ef323ea1682f9837bf63ba10c5e3750f71a20a
tree7edf904a6f570bedf5cf93b5b863f8d95980dca7
parentb12eb279ff552bd67c167b0fe701ae602aa7311e
powerpc/64s: Disable preemption in hash lazy mmu mode

apply_to_page_range on kernel pages does not disable preemption, which
is a requirement for hash's lazy mmu mode, which keeps track of the
TLBs to flush with a per-cpu array.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221013151647.1857994-1-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/tlbflush-hash.h