]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/syscall: switch user_exit_irqoff and trace_hardirqs_off order
authorNicholas Piggin <npiggin@gmail.com>
Tue, 16 Mar 2021 10:41:55 +0000 (20:41 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Apr 2021 13:04:19 +0000 (23:04 +1000)
commita9cdaaf54c077765c432b7ea4afc138e0f3c94dd
tree66715e39506c375ca22a4e2b48823aebba1e1a72
parentac4f7b45e0aa96bb8d0909ae733a1e537dc22614
powerpc/syscall: switch user_exit_irqoff and trace_hardirqs_off order

user_exit_irqoff() -> __context_tracking_exit -> vtime_user_exit
warns in __seqprop_assert due to lockdep thinking preemption is enabled
because trace_hardirqs_off() has not yet been called.

Switch the order of these two calls, which matches their ordering in
interrupt_enter_prepare.

Fixes: 4b48cf437b66 ("powerpc/64/syscall: Reconcile interrupts")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210316104206.407354-2-npiggin@gmail.com
arch/powerpc/kernel/interrupt.c