]> git.michaelhowe.org Git - packages/o/openafs.git/commit
VLockFile: Do not close fd on lock failure
authorAndrew Deason <adeason@sinenomine.net>
Thu, 18 Feb 2010 17:42:27 +0000 (11:42 -0600)
committerDerrick Brashear <shadow@dementia.org>
Wed, 24 Feb 2010 06:28:16 +0000 (22:28 -0800)
commitcbf5f6341c389b0ae85f797ee7c73ba430a8b8f1
treeac3787353540be817af8aa8316171acebd089653
parentc5e5790661cebdf2b45c7218d238bf18af01f99c
VLockFile: Do not close fd on lock failure

When we fail to acquire a lock in _VLockFd, do not close the fd if we
fail to acquire the lock for any reason, since VLockFile does that for
us already. There also may be other locks on that file, and we clearly
do not want to release them when just one lock fails. VLockFile takes
care of the necessary refcounting and fd closing, so don't do it in
_VLockFd too.

Change-Id: I65f27837dad033e0e84faf4aa0fb71ff26feda83
Reviewed-on: http://gerrit.openafs.org/1344
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/vutil.c