]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: Use raw_cpu_*() for per-cpu variables
authorPeter Zijlstra <peterz@infradead.org>
Thu, 20 Aug 2020 07:13:30 +0000 (09:13 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 Aug 2020 10:41:53 +0000 (12:41 +0200)
commit1f8d1b492a91cce4c5c5495b4a00a3f777088e16
tree5909759ef3729f2ef425cee2b1b33e483a48954c
parent066a8aace0c5f86a6f60488ff677bb53935358db
lockdep: Use raw_cpu_*() for per-cpu variables

Sven reported that commit 44b228b2388c ("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: 44b228b2388c ("lockdep: Change hardirq{s_enabled,_context} to per-cpu variables")
Reported-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200821085348.192346882@infradead.org
include/linux/irqflags.h
include/linux/lockdep.h
kernel/locking/lockdep.c