Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT

Relax the rule to set PROVE_RAW_LOCK_NESTING by default only for arches
that supports PREEMPT_RT. For arches that do not support PREEMPT_RT,
they will not be forced to address unimportant raw lock nesting issues
when they want to enable PROVE_LOCKING. They do have the option
to enable it to look for these raw locking nesting problems if they
choose to.

Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20241128020009.83347-1-longman@redhat.com

authored by

Waiman Long and committed by
Peter Zijlstra
d387ceb1 0302d2fd

+2 -2
+2 -2
lib/Kconfig.debug
··· 1397 1397 For more details, see Documentation/locking/lockdep-design.rst. 1398 1398 1399 1399 config PROVE_RAW_LOCK_NESTING 1400 - bool 1400 + bool "Enable raw_spinlock - spinlock nesting checks" if !ARCH_SUPPORTS_RT 1401 1401 depends on PROVE_LOCKING 1402 - default y 1402 + default y if ARCH_SUPPORTS_RT 1403 1403 help 1404 1404 Enable the raw_spinlock vs. spinlock nesting checks which ensure 1405 1405 that the lock nesting rules for PREEMPT_RT enabled kernels are