Skip to contentSkip to conversation

locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT

PATCH Superseded Waiman Long 3 participants 3 messages Nov 26, 2024 – Nov 28, 2024 Library code

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 irrelevant raw lock nesting issues when they want to enable PROVE_LOCKING.

---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/Kconfig.debug +1 -1
index 1e37c62e8595..c53a498dc33f 100644
@@ -1398,7 +1398,7 @@ config PROVE_LOCKING
 
 config PROVE_RAW_LOCK_NESTING
 	bool
-	depends on PROVE_LOCKING
+	depends on PROVE_LOCKING && ARCH_SUPPORTS_RT
 	default y
 	help
 	 Enable the raw_spinlock vs. spinlock nesting checks which ensure
Signature · 1 line
2.47.0
#1 lore raw
Quoted 4 lines · Waiman Long

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 irrelevant raw lock nesting issues when they want to enable PROVE_LOCKING.

I don't like the wording here. It is not "irrelevant raw lock nesting issues". This is documented in Documentation/locking/locktypes.rst. *IFF* we agree to ignore those because we don't want PREEMPT_RT on certain architectures then okay. But please don't describe it as irrelevant.

Sebastian

#2 lore raw
Quoted 10 lines · Sebastian Andrzej Siewior
Quoted 4 lines · Waiman Long

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 irrelevant raw lock nesting issues when they want to enable PROVE_LOCKING.

I don't like the wording here. It is not "irrelevant raw lock nesting issues". This is documented in Documentation/locking/locktypes.rst. *IFF* we agree to ignore those because we don't want PREEMPT_RT on certain architectures then okay. But please don't describe it as irrelevant.

Sorry for that. I will post a v2 patch to fix the wording.

Cheers,
Longman