]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-buf-20071103
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 3 Nov 2007 16:08:03 +0000 (16:08 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 3 Nov 2007 16:08:03 +0000 (16:08 +0000)
assert that the cm_scache_t mutex is held when calling
buf_ForceDataVersion().

src/WINNT/afsd/cm_buf.c

index daeb764b7ee95d21590adf269d066313f9b5901d..2f580b1827fcfef0eb44953ecb995170f7b079bd 100644 (file)
@@ -1504,6 +1504,8 @@ long buf_ForceDataVersion(cm_scache_t * scp, afs_uint32 fromVersion, afs_uint32
     unsigned int i;
     int found = 0;
 
+    lock_AssertMutex(&scp->mx);
+
     i = BUF_FILEHASH(&scp->fid);
 
     lock_ObtainWrite(&buf_globalLock);