From: Waiman Long <longman@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>, Will Deacon <will.deacon@arm.com>,
Boqun Feng <boqun.feng@gmail.com>
Cc: linux-kernel@vger.kernel.org,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
Guenter Roeck <linux@roeck-us.net>,
Waiman Long <longman@redhat.com>
Subject: [PATCH] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT
Date: Tue, 26 Nov 2024 18:11:54 -0500 [thread overview]
Message-ID: <20241126231154.29151-1-longman@redhat.com> (raw)
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.
Signed-off-by: Waiman Long <longman@redhat.com>
---
lib/Kconfig.debug | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1e37c62e8595..c53a498dc33f 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -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
--
2.47.0
next reply other threads:[~2024-11-26 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-26 23:11 Waiman Long [this message]
2024-11-27 16:44 ` [PATCH] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT Sebastian Andrzej Siewior
2024-11-28 0:00 ` Waiman Long
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241126231154.29151-1-longman@redhat.com \
--to=longman@redhat.com \
--cc=bigeasy@linutronix.de \
--cc=boqun.feng@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox