]> err.no Git - linux-2.6/commit
lockdep: fix debug_lock_alloc
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 11 Aug 2008 20:45:51 +0000 (22:45 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 Aug 2008 20:45:51 +0000 (22:45 +0200)
commit0f2bc27be27ca1dcc66b96131e44bf7648b959c6
tree22ea7b9a28878851f445a5420ff80b64ee1cfdd1
parente5f363e358cf16e4ad13a6826e15088c5495efe9
lockdep: fix debug_lock_alloc

When we enable DEBUG_LOCK_ALLOC but do not enable PROVE_LOCKING and or
LOCK_STAT, lock_alloc() and lock_release() turn into nops, even though
we should be doing hlock checking (check=1).

This causes a false warning and a lockdep self-disable.

Rectify this.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/lockdep.c