Skip to content

Commit

Permalink
[PATCH] lockdep: use chain hash on CONFIG_DEBUG_LOCKDEP too
Browse files Browse the repository at this point in the history
CONFIG_DEBUG_LOCKDEP is unacceptably slow because it does not utilize
the chain-hash. Turn the chain-hash back on in this case too.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ingo Molnar authored and Linus Torvalds committed Dec 13, 2006
1 parent 33e94e9 commit 27c3b23
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1276,14 +1276,6 @@ static inline int lookup_chain_cache(u64 chain_key, struct lock_class *class)
if (chain->chain_key == chain_key) {
cache_hit:
debug_atomic_inc(&chain_lookup_hits);
/*
* In the debugging case, force redundant checking
* by returning 1:
*/
#ifdef CONFIG_DEBUG_LOCKDEP
__raw_spin_lock(&hash_lock);
return 1;
#endif
if (very_verbose(class))
printk("\nhash chain already cached, key: %016Lx tail class: [%p] %s\n", chain_key, class->key, class->name);
return 0;
Expand Down

0 comments on commit 27c3b23

Please sign in to comment.