]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lockdep: fix mismatched lockdep_depth/curr_chain_hash
authorGregory Haskins <ghaskins@novell.com>
Wed, 31 Oct 2007 15:44:05 +0000 (11:44 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 2 Nov 2007 15:44:16 +0000 (08:44 -0700)
commit8aa78d8d9e98513a529f99f12cfd577531021f9b
tree8c6c121f86c4c290e255c13113dd5e75f7efe338
parent02d29bbef2858caeac240a3d6291695717845c41
lockdep: fix mismatched lockdep_depth/curr_chain_hash

patch 3aa416b07f0adf01c090baab26fb70c35ec17623 in mainline.

lockdep: fix mismatched lockdep_depth/curr_chain_hash

It is possible for the current->curr_chain_key to become inconsistent with the
current index if the chain fails to validate.  The end result is that future
lock_acquire() operations may inadvertently fail to find a hit in the cache
resulting in a new node being added to the graph for every acquire.

[ peterz: this might explain some of the lockdep is so _slow_ complaints. ]
[ mingo: this does not impact the correctness of validation, but may slow
  down future operations significantly, if the chain gets very long. ]

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/lockdep.c