Skip to content
Commit b1082781 authored by S. Lockwood-Childs's avatar S. Lockwood-Childs Committed by Sasha Levin
Browse files

tools/liblockdep: Account for bitfield changes in lockdeps lock_acquire



Commit fb9edbe9 shortened held_lock->check from a 2-bit field
to a 1-bit field.

Make liblockdep compatible with the new definition by passing check=1
to lock_acquire() calls, rather than the old value check=2 (which
inadvertently disabled checks by overflowing to 0).

Without this fix, several of the test cases in liblockdep run_tests.sh
were failing.

Signed-off-by: default avatarS. Lockwood-Childs <sjl@vctlabs.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 0c37c686
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment