s390: don't trace preemption in percpu macros
authorSven Schnelle <svens@linux.ibm.com>
Thu, 20 Aug 2020 07:48:23 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Sep 2020 09:47:32 +0000 (11:47 +0200)
commit73888a8f8ceebddb34460ea82a6e106c1ee83c3e
treeb2502bd9535ccafbd4d9bbc76729bd8c8becc61b
parent7627de7f3379ba988cfafb4cc4ba57265228dff8
s390: don't trace preemption in percpu macros

[ Upstream commit 1196f12a2c960951d02262af25af0bb1775ebcc2 ]

Since commit a21ee6055c30 ("lockdep: Change hardirq{s_enabled,_context}
to per-cpu variables") the lockdep code itself uses percpu variables. This
leads to recursions because the percpu macros are calling preempt_enable()
which might call trace_preempt_on().

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/include/asm/percpu.h