* [PATCH v2] lockdep: Make LOCKDEP_CROSSRELEASE configs all part of PROVE_LOCKING
@ 2017-08-17 8:06 Byungchul Park
2017-08-17 8:17 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Byungchul Park @ 2017-08-17 8:06 UTC (permalink / raw)
To: peterz, mingo; +Cc: linux-kernel, kernel-team
Crossrelease added LOCKDEP_CROSSRELEASE and LOCKDEP_COMPLETE configs. It
makes little sense to enable them when PROVE_LOCKING is disabled.
Make them non-interative option and all part of PROVE_LOCKING.
Signed-off-by: Byungchul Park <byungchul.park@lge.com>
---
lib/Kconfig.debug | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ee9e534..84bb4c5 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1084,6 +1084,8 @@ config PROVE_LOCKING
select DEBUG_MUTEXES
select DEBUG_RT_MUTEXES if RT_MUTEXES
select DEBUG_LOCK_ALLOC
+ select LOCKDEP_CROSSRELEASE
+ select LOCKDEP_COMPLETE
select TRACE_IRQFLAGS
default n
help
@@ -1155,8 +1157,6 @@ config LOCK_STAT
config LOCKDEP_CROSSRELEASE
bool "Lock debugging: make lockdep work for crosslocks"
- depends on PROVE_LOCKING
- default n
help
This makes lockdep work for crosslock which is a lock allowed to
be released in a different context from the acquisition context.
@@ -1167,9 +1167,6 @@ config LOCKDEP_CROSSRELEASE
config LOCKDEP_COMPLETE
bool "Lock debugging: allow completions to use deadlock detector"
- depends on PROVE_LOCKING
- select LOCKDEP_CROSSRELEASE
- default n
help
A deadlock caused by wait_for_completion() and complete() can be
detected by lockdep using crossrelease feature.
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] lockdep: Make LOCKDEP_CROSSRELEASE configs all part of PROVE_LOCKING
2017-08-17 8:06 [PATCH v2] lockdep: Make LOCKDEP_CROSSRELEASE configs all part of PROVE_LOCKING Byungchul Park
@ 2017-08-17 8:17 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2017-08-17 8:17 UTC (permalink / raw)
To: Byungchul Park; +Cc: peterz, linux-kernel, kernel-team
* Byungchul Park <byungchul.park@lge.com> wrote:
> Crossrelease added LOCKDEP_CROSSRELEASE and LOCKDEP_COMPLETE configs. It
> makes little sense to enable them when PROVE_LOCKING is disabled.
>
> Make them non-interative option and all part of PROVE_LOCKING.
>
> Signed-off-by: Byungchul Park <byungchul.park@lge.com>
> ---
> lib/Kconfig.debug | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index ee9e534..84bb4c5 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1084,6 +1084,8 @@ config PROVE_LOCKING
> select DEBUG_MUTEXES
> select DEBUG_RT_MUTEXES if RT_MUTEXES
> select DEBUG_LOCK_ALLOC
> + select LOCKDEP_CROSSRELEASE
> + select LOCKDEP_COMPLETE
> select TRACE_IRQFLAGS
> default n
> help
> @@ -1155,8 +1157,6 @@ config LOCK_STAT
>
> config LOCKDEP_CROSSRELEASE
> bool "Lock debugging: make lockdep work for crosslocks"
> - depends on PROVE_LOCKING
> - default n
> help
> This makes lockdep work for crosslock which is a lock allowed to
> be released in a different context from the acquisition context.
> @@ -1167,9 +1167,6 @@ config LOCKDEP_CROSSRELEASE
>
> config LOCKDEP_COMPLETE
> bool "Lock debugging: allow completions to use deadlock detector"
> - depends on PROVE_LOCKING
> - select LOCKDEP_CROSSRELEASE
> - default n
BTW., and I just noticed this, "LOCKDEP_COMPLETE" is a misnomer: it should be
"LOCKDEP_COMPLETIONS".
Think about it, 'complete' is an adjective, and the current name suggests 'lockdep
is complete' or so, so it's pretty confusing.
So let's do a (separate) renaming patch as well.
Also, while at it:
> bool "Lock debugging: make lockdep work for crosslocks"
Please word that more directly - lockdep doesn't have to be made to work with
crosslocks - it works with them, what the option does is that it enables crosslock
support. I.e.:
bool "Lock debugging: enable cross-locking checks in lockdep"
or so.
Thanks,
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-17 8:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-17 8:06 [PATCH v2] lockdep: Make LOCKDEP_CROSSRELEASE configs all part of PROVE_LOCKING Byungchul Park
2017-08-17 8:17 ` Ingo Molnar
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®