projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
058560f
)
[PATCH] lockdep: lockdep_depth vs. debug_locks
author
Jarek Poplawski
<
[email protected]
>
Thu, 22 Mar 2007 08:11:26 +0000
(
00:11
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 23 Mar 2007 02:39:06 +0000
(19:39 -0700)
lockdep found a bug during a run of workqueue function - this could be also
caused by a bug from other code running simultaneously.
lockdep really shouldn't be used when debug_locks == 0!
Reported-by: Folkert van Heusden <
[email protected]
>
Inspired-by: Oleg Nesterov <
[email protected]
>
Signed-off-by: Jarek Poplawski <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Acked-by: Peter Zijlstra <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/lockdep.h
patch
|
blob
|
history
diff --git
a/include/linux/lockdep.h
b/include/linux/lockdep.h
index 06fe93a3e916d882fa09fe4275ed9cbf922ac8c0..14c937d345cb135916fff7a44878a631b9ae3813 100644
(file)
--- a/
include/linux/lockdep.h
+++ b/
include/linux/lockdep.h
@@
-245,7
+245,7
@@
extern void lock_release(struct lockdep_map *lock, int nested,
# define INIT_LOCKDEP .lockdep_recursion = 0,
-#define lockdep_depth(tsk) (
(tsk)->lockdep_depth
)
+#define lockdep_depth(tsk) (
debug_locks ? (tsk)->lockdep_depth : 0
)
#else /* !LOCKDEP */