]> Git Repo - linux.git/commit
lockdep: Use raw_cpu_*() for per-cpu variables
authorPeter Zijlstra <[email protected]>
Thu, 20 Aug 2020 07:13:30 +0000 (09:13 +0200)
committerPeter Zijlstra <[email protected]>
Wed, 26 Aug 2020 10:41:53 +0000 (12:41 +0200)
commitfddf9055a60dfcc97bda5ef03c8fa4108ed555c5
tree5909759ef3729f2ef425cee2b1b33e483a48954c
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
lockdep: Use raw_cpu_*() for per-cpu variables

Sven reported that commit a21ee6055c30 ("lockdep: Change
hardirq{s_enabled,_context} to per-cpu variables") caused trouble on
s390 because their this_cpu_*() primitives disable preemption which
then lands back tracing.

On the one hand, per-cpu ops should use preempt_*able_notrace() and
raw_local_irq_*(), on the other hand, we can trivialy use raw_cpu_*()
ops for this.

Fixes: a21ee6055c30 ("lockdep: Change hardirq{s_enabled,_context} to per-cpu variables")
Reported-by: Sven Schnelle <[email protected]>
Reviewed-by: Steven Rostedt (VMware) <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Tested-by: Marco Elver <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
include/linux/irqflags.h
include/linux/lockdep.h
kernel/locking/lockdep.c
This page took 0.072291 seconds and 4 git commands to generate.