]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix an incorrect assertion in witness.
authorMark Johnston <markj@FreeBSD.org>
Tue, 7 Jul 2015 19:29:18 +0000 (19:29 +0000)
committerMark Johnston <markj@FreeBSD.org>
Tue, 7 Jul 2015 19:29:18 +0000 (19:29 +0000)
commit620711e033add8a38907779b1ab0353dd457b2ee
tree95580de8f3428bf8eebf29820a2bbd512e72901c
parenta238a79872b38dd554a0e319b927738e52d68404
Fix an incorrect assertion in witness.

The number of available lock list entries for a thread is LOCK_CHILDCOUNT,
and each entry can record up to LOCK_NCHILDREN locks. When iterating over
the locks held by a thread, a bound on the loop index is therefore given
by LOCK_CHILDCOUNT * LOCK_NCHILDREN; WITNESS_COUNT is an unrelated
constant.

Reviewed by: jhb
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D2974
sys/kern/subr_witness.c