mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
vutil use lockfile mutex macros for lockfile mutex
we have macroes; let's use them. makes later changes easier. Change-Id: If128930f659c34592c27503a02d64b67d7f60a84 Reviewed-on: http://gerrit.openafs.org/2996 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Reviewed-by: Rod Widdowson <rdw@steadingsoftware.com> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
787137104b
commit
12570db7c9
@ -1087,9 +1087,7 @@ _VUnlockFd(int fd, afs_uint32 offset)
|
||||
void
|
||||
VLockFileReinit(struct VLockFile *lf)
|
||||
{
|
||||
#ifdef AFS_PTHREAD_ENV
|
||||
assert(pthread_mutex_lock(&lf->mutex) == 0);
|
||||
#endif /* AFS_PTHREAD_ENV */
|
||||
AFS_LF_LOCK(lf);
|
||||
|
||||
if (lf->fd != INVALID_FD) {
|
||||
_VCloseFd(lf->fd);
|
||||
@ -1098,9 +1096,7 @@ VLockFileReinit(struct VLockFile *lf)
|
||||
|
||||
lf->refcount = 0;
|
||||
|
||||
#ifdef AFS_PTHREAD_ENV
|
||||
assert(pthread_mutex_unlock(&lf->mutex) == 0);
|
||||
#endif /* AFS_PTHREAD_ENV */
|
||||
AFS_LF_UNLOCK(lf);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user