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

(cherry picked from commit ef6684d005b3858dd6a1a94deee48b4bbd167932)

src/WINNT/afsd/cm_buf.c

index 84c216c0cdd6ecde2678b920869325a9dca7f097..042788ae8ffd48669546e1c59999c79ee850c544 100644 (file)
@@ -1554,6 +1554,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);