diff options
Diffstat (limited to 'lib/debug_locks.c')
-rw-r--r-- | lib/debug_locks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/debug_locks.c b/lib/debug_locks.c index 96c4c633d95e..ce51749cc145 100644 --- a/lib/debug_locks.c +++ b/lib/debug_locks.c | |||
@@ -21,7 +21,7 @@ | |||
21 | * that would just muddy the log. So we report the first one and | 21 | * that would just muddy the log. So we report the first one and |
22 | * shut up after that. | 22 | * shut up after that. |
23 | */ | 23 | */ |
24 | int debug_locks = 1; | 24 | int debug_locks __read_mostly = 1; |
25 | EXPORT_SYMBOL_GPL(debug_locks); | 25 | EXPORT_SYMBOL_GPL(debug_locks); |
26 | 26 | ||
27 | /* | 27 | /* |
@@ -29,7 +29,7 @@ EXPORT_SYMBOL_GPL(debug_locks); | |||
29 | * 'silent failure': nothing is printed to the console when | 29 | * 'silent failure': nothing is printed to the console when |
30 | * a locking bug is detected. | 30 | * a locking bug is detected. |
31 | */ | 31 | */ |
32 | int debug_locks_silent; | 32 | int debug_locks_silent __read_mostly; |
33 | EXPORT_SYMBOL_GPL(debug_locks_silent); | 33 | EXPORT_SYMBOL_GPL(debug_locks_silent); |
34 | 34 | ||
35 | /* | 35 | /* |
@@ -37,7 +37,7 @@ EXPORT_SYMBOL_GPL(debug_locks_silent); | |||
37 | */ | 37 | */ |
38 | int debug_locks_off(void) | 38 | int debug_locks_off(void) |
39 | { | 39 | { |
40 | if (__debug_locks_off()) { | 40 | if (debug_locks && __debug_locks_off()) { |
41 | if (!debug_locks_silent) { | 41 | if (!debug_locks_silent) { |
42 | console_verbose(); | 42 | console_verbose(); |
43 | return 1; | 43 | return 1; |