OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
locking/lockdep: Add debug_locks check in __lock_downgrade()
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
kernel
/
locking
/
lockdep.c
diff --git
a/kernel/locking/lockdep.c
b/kernel/locking/lockdep.c
index
f2df5f8
..
a419696
100644
(file)
--- a/
kernel/locking/lockdep.c
+++ b/
kernel/locking/lockdep.c
@@
-3314,6
+3314,9
@@
__lock_set_class(struct lockdep_map *lock, const char *name,
unsigned int depth;
int i;
+ if (unlikely(!debug_locks))
+ return 0;
+
depth = curr->lockdep_depth;
/*
* This function is about (re)setting the class of a held lock,