freebsd-dev/cddl/contrib
Pawel Jakub Dawidek 0356e5fcb5 MFp4 180933:
Initialize rw_count properly so that zdb(8) doesn't trigger assertion in
rw_enter():

	ASSERT(rwlp->rw_count == 0);

While here, assert that rw_count is 0 when destroying the lock.

MFC after:	1 week
2010-07-14 06:37:43 +00:00
..
opensolaris MFp4 180933: 2010-07-14 06:37:43 +00:00