X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=kernel%2Flockdep.c;h=a08a17218dfaced4c32e39fe40d628f4d32cb578;hb=269def7c505b4d229f9ad49bf88543d1e605533e;hp=592c576d77a7c325cb4edfa4d496f244764b5ae5;hpb=c827ba4cb49a30ce581201fd0ba2be77cde412c7;p=powerpc.git diff --git a/kernel/lockdep.c b/kernel/lockdep.c index 592c576d77..a08a17218d 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c @@ -2228,6 +2228,10 @@ out_calc_hash: curr->lockdep_depth++; check_chain_key(curr); +#ifdef CONFIG_DEBUG_LOCKDEP + if (unlikely(!debug_locks)) + return 0; +#endif if (unlikely(curr->lockdep_depth >= MAX_LOCK_DEPTH)) { debug_locks_off(); printk("BUG: MAX_LOCK_DEPTH too low!\n");