milis/talimatname/genel/kernel/lockdep-debug.patch

48 lines
1.4 KiB
Diff
Raw Normal View History

2017-06-03 03:34:14 +02:00
aufs4.10 lockdep patch
2016-10-23 14:10:48 +02:00
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
2017-06-03 03:34:14 +02:00
index 1e327bb..0345cbf 100644
2016-10-23 14:10:48 +02:00
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
2017-06-03 03:34:14 +02:00
@@ -16,7 +16,7 @@ struct lockdep_map;
extern int prove_locking;
extern int lock_stat;
2016-10-23 14:10:48 +02:00
-#define MAX_LOCKDEP_SUBCLASSES 8UL
+#define MAX_LOCKDEP_SUBCLASSES (8UL + 4)
2017-06-03 03:34:14 +02:00
#ifdef CONFIG_LOCKDEP
@@ -205,7 +205,7 @@ struct lock_chain {
2016-10-23 14:10:48 +02:00
u64 chain_key;
};
-#define MAX_LOCKDEP_KEYS_BITS 13
+#define MAX_LOCKDEP_KEYS_BITS (13 + 3)
/*
* Subtract one because we offset hlock->class_idx by 1 in order
* to make 0 mean no class. This avoids overflowing the class_idx
diff --git a/kernel/locking/lockdep_internals.h b/kernel/locking/lockdep_internals.h
2017-06-03 03:34:14 +02:00
index c2b8849..9c8f717 100644
2016-10-23 14:10:48 +02:00
--- a/kernel/locking/lockdep_internals.h
+++ b/kernel/locking/lockdep_internals.h
2017-06-03 03:34:14 +02:00
@@ -66,15 +66,15 @@ enum {
#define MAX_LOCKDEP_CHAINS_BITS 15
#define MAX_STACK_TRACE_ENTRIES 262144UL
#else
2016-10-23 14:10:48 +02:00
-#define MAX_LOCKDEP_ENTRIES 32768UL
+#define MAX_LOCKDEP_ENTRIES (32768UL << 5)
-#define MAX_LOCKDEP_CHAINS_BITS 16
+#define MAX_LOCKDEP_CHAINS_BITS (16 + 5)
2017-06-03 03:34:14 +02:00
/*
2016-10-23 14:10:48 +02:00
* Stack-trace: tightly packed array of stack backtrace
* addresses. Protected by the hash_lock.
*/
-#define MAX_STACK_TRACE_ENTRIES 524288UL
+#define MAX_STACK_TRACE_ENTRIES (524288UL << 5)
2017-06-03 03:34:14 +02:00
#endif
2016-10-23 14:10:48 +02:00
2017-06-03 03:34:14 +02:00
#define MAX_LOCKDEP_CHAINS (1UL << MAX_LOCKDEP_CHAINS_BITS)