Add asserts to VLock* functions
authorAndrew Deason <adeason@sinenomine.net>
Fri, 23 Apr 2010 22:51:28 +0000 (17:51 -0500)
committerDaria Brashear <shadow@your-file-system.com>
Wed, 21 Jan 2015 15:40:23 +0000 (10:40 -0500)
commitd7052df849278ca685bae113a580bfaadce3d2aa
tree06daa89637b3aaa2351c96810471ce45afa93a61
parent82a30ed17c9cf56e319d5e13ca2e18d82f8b239c
Add asserts to VLock* functions

Make sure we don't continue on if we have unbalanced locks and
unlocks. Having a negative refcount is a serious internal error, and
they are difficult to fix unless we assert right away.

Change-Id: Ib9b5b3f209635e0365df96c79ea8bf49c765008b
Reviewed-on: http://gerrit.openafs.org/2594
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
src/vol/vutil.c