summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2019-05-20 16:59:00 -0400
committerIngo Molnar <mingo@kernel.org>2019-06-17 06:27:54 -0400
commitc71fd893f614f205dbc050d60299cc5496491c19 (patch)
treed1286d64684cbad1bf2ff02c55321bcac040b776 /lib/Kconfig.debug
parent69d927bba39517d0980462efc051875b7f4db185 (diff)
locking/rwsem: Make owner available even if !CONFIG_RWSEM_SPIN_ON_OWNER
The owner field in the rw_semaphore structure is used primarily for optimistic spinning. However, identifying the rwsem owner can also be helpful in debugging as well as tracing locking related issues when analyzing crash dump. The owner field may also store state information that can be important to the operation of the rwsem. So the owner field is now made a permanent member of the rw_semaphore structure irrespective of CONFIG_RWSEM_SPIN_ON_OWNER. Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Tim Chen <tim.c.chen@linux.intel.com> Cc: Will Deacon <will.deacon@arm.com> Cc: huang ying <huang.ying.caritas@gmail.com> Link: https://lkml.kernel.org/r/20190520205918.22251-2-longman@redhat.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index cbdfae379896..417bdd9e80fb 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1095,7 +1095,7 @@ config PROVE_LOCKING
1095 select DEBUG_SPINLOCK 1095 select DEBUG_SPINLOCK
1096 select DEBUG_MUTEXES 1096 select DEBUG_MUTEXES
1097 select DEBUG_RT_MUTEXES if RT_MUTEXES 1097 select DEBUG_RT_MUTEXES if RT_MUTEXES
1098 select DEBUG_RWSEMS if RWSEM_SPIN_ON_OWNER 1098 select DEBUG_RWSEMS
1099 select DEBUG_WW_MUTEX_SLOWPATH 1099 select DEBUG_WW_MUTEX_SLOWPATH
1100 select DEBUG_LOCK_ALLOC 1100 select DEBUG_LOCK_ALLOC
1101 select TRACE_IRQFLAGS 1101 select TRACE_IRQFLAGS
@@ -1199,10 +1199,10 @@ config DEBUG_WW_MUTEX_SLOWPATH
1199 1199
1200config DEBUG_RWSEMS 1200config DEBUG_RWSEMS
1201 bool "RW Semaphore debugging: basic checks" 1201 bool "RW Semaphore debugging: basic checks"
1202 depends on DEBUG_KERNEL && RWSEM_SPIN_ON_OWNER 1202 depends on DEBUG_KERNEL
1203 help 1203 help
1204 This debugging feature allows mismatched rw semaphore locks and unlocks 1204 This debugging feature allows mismatched rw semaphore locks
1205 to be detected and reported. 1205 and unlocks to be detected and reported.
1206 1206
1207config DEBUG_LOCK_ALLOC 1207config DEBUG_LOCK_ALLOC
1208 bool "Lock debugging: detect incorrect freeing of live locks" 1208 bool "Lock debugging: detect incorrect freeing of live locks"