* [PATCH v2] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT
@ 2024-11-28 2:00 Waiman Long
2024-11-28 3:19 ` Guenter Roeck
2024-12-02 11:23 ` [tip: locking/core] " tip-bot2 for Waiman Long
0 siblings, 2 replies; 3+ messages in thread
From: Waiman Long @ 2024-11-28 2:00 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Will Deacon, Boqun Feng
Cc: linux-kernel, Sebastian Andrzej Siewior, Guenter Roeck, 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 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>
---
lib/Kconfig.debug | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1e37c62e8595..942b4cb138bd 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1397,9 +1397,9 @@ config PROVE_LOCKING
For more details, see Documentation/locking/lockdep-design.rst.
config PROVE_RAW_LOCK_NESTING
- bool
+ bool "Enable raw_spinlock - spinlock nesting checks" if !ARCH_SUPPORTS_RT
depends on PROVE_LOCKING
- default y
+ default y if ARCH_SUPPORTS_RT
help
Enable the raw_spinlock vs. spinlock nesting checks which ensure
that the lock nesting rules for PREEMPT_RT enabled kernels are
--
2.47.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT
2024-11-28 2:00 [PATCH v2] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT Waiman Long
@ 2024-11-28 3:19 ` Guenter Roeck
2024-12-02 11:23 ` [tip: locking/core] " tip-bot2 for Waiman Long
1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2024-11-28 3:19 UTC (permalink / raw)
To: Waiman Long, Peter Zijlstra, Ingo Molnar, Will Deacon, Boqun Feng
Cc: linux-kernel, Sebastian Andrzej Siewior
On 11/27/24 18:00, Waiman Long wrote:
> 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>
Tested-by: Guenter Roeck <linux@roeck-us.net>
> ---
> lib/Kconfig.debug | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 1e37c62e8595..942b4cb138bd 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1397,9 +1397,9 @@ config PROVE_LOCKING
> For more details, see Documentation/locking/lockdep-design.rst.
>
> config PROVE_RAW_LOCK_NESTING
> - bool
> + bool "Enable raw_spinlock - spinlock nesting checks" if !ARCH_SUPPORTS_RT
> depends on PROVE_LOCKING
> - default y
> + default y if ARCH_SUPPORTS_RT
> help
> Enable the raw_spinlock vs. spinlock nesting checks which ensure
> that the lock nesting rules for PREEMPT_RT enabled kernels are
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: locking/core] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT
2024-11-28 2:00 [PATCH v2] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT Waiman Long
2024-11-28 3:19 ` Guenter Roeck
@ 2024-12-02 11:23 ` tip-bot2 for Waiman Long
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Waiman Long @ 2024-12-02 11:23 UTC (permalink / raw)
To: linux-tip-commits
Cc: Guenter Roeck, Waiman Long, Peter Zijlstra (Intel), x86, linux-kernel
The following commit has been merged into the locking/core branch of tip:
Commit-ID: d387ceb17149fed4d85a1ec01b3d65ae0204060d
Gitweb: https://git.kernel.org/tip/d387ceb17149fed4d85a1ec01b3d65ae0204060d
Author: Waiman Long <longman@redhat.com>
AuthorDate: Wed, 27 Nov 2024 21:00:09 -05:00
Committer: Peter Zijlstra <peterz@infradead.org>
CommitterDate: Mon, 02 Dec 2024 12:16:58 +01:00
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
---
lib/Kconfig.debug | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index f3d7237..49a3819 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1397,9 +1397,9 @@ config PROVE_LOCKING
For more details, see Documentation/locking/lockdep-design.rst.
config PROVE_RAW_LOCK_NESTING
- bool
+ bool "Enable raw_spinlock - spinlock nesting checks" if !ARCH_SUPPORTS_RT
depends on PROVE_LOCKING
- default y
+ default y if ARCH_SUPPORTS_RT
help
Enable the raw_spinlock vs. spinlock nesting checks which ensure
that the lock nesting rules for PREEMPT_RT enabled kernels are
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-02 11:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-28 2:00 [PATCH v2] locking/lockdep: Enforce PROVE_RAW_LOCK_NESTING only if ARCH_SUPPORTS_RT Waiman Long
2024-11-28 3:19 ` Guenter Roeck
2024-12-02 11:23 ` [tip: locking/core] " tip-bot2 for Waiman Long
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®