]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: fix mismatched lockdep_depth/curr_chain_hash
authorGregory Haskins <ghaskins@novell.com>
Thu, 11 Oct 2007 20:11:11 +0000 (22:11 +0200)
committerPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 11 Oct 2007 20:11:11 +0000 (22:11 +0200)
commit31180715fd7e7d7858c5b4ff5ef9f80b86f6e4bf
treea2c2c2f7bd8445b138b293ba6661833f970954ee
parent91400155ff86a85fbbecba6fd76f9d0acb2fdcac
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.

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>
kernel/lockdep.c