lockdep-debug.patch 1.64 KB
Newer Older
J. R. Okajima's avatar
J. R. Okajima committed
1
2
3
4
SPDX-License-Identifier: GPL-2.0
aufs5.x-rcN lockdep patch

diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
J. R. Okajima's avatar
J. R. Okajima committed
5
index f452521f2e05..8043dba1cceb 100644
J. R. Okajima's avatar
J. R. Okajima committed
6
7
8
9
10
11
12
13
14
15
16
17
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -17,7 +17,7 @@ struct lockdep_map;
 extern int prove_locking;
 extern int lock_stat;
 
-#define MAX_LOCKDEP_SUBCLASSES		8UL
+#define MAX_LOCKDEP_SUBCLASSES		(8UL + 4)
 
 #include <linux/types.h>
 
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
J. R. Okajima's avatar
J. R. Okajima committed
18
index d7f71842f8a2..f1a630b92260 100644
J. R. Okajima's avatar
J. R. Okajima committed
19
20
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
J. R. Okajima's avatar
J. R. Okajima committed
21
@@ -4767,6 +4773,7 @@ void lockdep_reset(void)
J. R. Okajima's avatar
J. R. Okajima committed
22
23
24
25
26
 		INIT_HLIST_HEAD(chainhash_table + i);
 	raw_local_irq_restore(flags);
 }
+/* EXPORT_SYMBOL_GPL(lock_reset); */
 
J. R. Okajima's avatar
J. R. Okajima committed
27
28
 /* Remove a class from a lock chain. Must be called with the graph lock held. */
 static void remove_class_from_lock_chain(struct pending_free *pf,
J. R. Okajima's avatar
J. R. Okajima committed
29
diff --git a/kernel/locking/lockdep_internals.h b/kernel/locking/lockdep_internals.h
J. R. Okajima's avatar
J. R. Okajima committed
30
index 18d85aebbb57..1fe552a33fb1 100644
J. R. Okajima's avatar
J. R. Okajima committed
31
32
--- a/kernel/locking/lockdep_internals.h
+++ b/kernel/locking/lockdep_internals.h
J. R. Okajima's avatar
J. R. Okajima committed
33
@@ -94,15 +94,15 @@ static const unsigned long LOCKF_USED_IN_IRQ_READ =
J. R. Okajima's avatar
J. R. Okajima committed
34
 #define MAX_STACK_TRACE_ENTRIES	262144UL
J. R. Okajima's avatar
J. R. Okajima committed
35
 #define STACK_TRACE_HASH_SIZE	8192
J. R. Okajima's avatar
J. R. Okajima committed
36
37
38
39
40
41
42
43
44
45
46
47
48
 #else
-#define MAX_LOCKDEP_ENTRIES	32768UL
+#define MAX_LOCKDEP_ENTRIES	(32768UL << 5)
 
-#define MAX_LOCKDEP_CHAINS_BITS	16
+#define MAX_LOCKDEP_CHAINS_BITS	(16 + 5)
 
 /*
  * 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)
J. R. Okajima's avatar
J. R. Okajima committed
49
 #define STACK_TRACE_HASH_SIZE	16384
J. R. Okajima's avatar
J. R. Okajima committed
50
51
 #endif