lockdep: Introduce wait-type checks
[sfrench/cifs-2.6.git] / lib / Kconfig.debug
index 69def4a9df00916f5b52a931ec1a5eedb95abbef..70813e39f911c30839e4146c0a41d2f69cf66f9a 100644 (file)
@@ -1086,6 +1086,23 @@ config PROVE_LOCKING
 
         For more details, see Documentation/locking/lockdep-design.rst.
 
+config PROVE_RAW_LOCK_NESTING
+       bool "Enable raw_spinlock - spinlock nesting checks"
+       depends on PROVE_LOCKING
+       default n
+       help
+        Enable the raw_spinlock vs. spinlock nesting checks which ensure
+        that the lock nesting rules for PREEMPT_RT enabled kernels are
+        not violated.
+
+        NOTE: There are known nesting problems. So if you enable this
+        option expect lockdep splats until these problems have been fully
+        addressed which is work in progress. This config switch allows to
+        identify and analyze these problems. It will be removed and the
+        check permanentely enabled once the main issues have been fixed.
+
+        If unsure, select N.
+
 config LOCK_STAT
        bool "Lock usage statistics"
        depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT