Re: [PATCH 1/9] lockdep: Use raw_cpu_*() for per-cpu variables

2020-08-20 Thread Steven Rostedt
On Thu, 20 Aug 2020 09:30:32 +0200 Peter Zijlstra wrote: > +++ b/include/linux/lockdep.h > @@ -535,19 +535,27 @@ do { > \ > DECLARE_PER_CPU(int, hardirqs_enabled); > DECLARE_PER_CPU(int, hardirq_context); > > +/* > + * The be

[PATCH 1/9] lockdep: Use raw_cpu_*() for per-cpu variables

2020-08-20 Thread Peter Zijlstra
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_i