]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-scache-refcount-race-20080207
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 21:21:20 +0000 (21:21 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 7 Feb 2008 21:21:20 +0000 (21:21 +0000)
LICENSE MIT

if we are going to call a NoLock function better be holding the lock

(cherry picked from commit bb2dc54732c865f37b0e9c5b928c850daa795b4d)

src/WINNT/afsd/cm_callback.c

index 96f6c36e1d589da33a76c63c72bedc29959a888d..0d2b00bb3bca2c37cde6fddba0ccda3987395b05 100644 (file)
@@ -1932,8 +1932,8 @@ void cm_CheckCBExpiration(void)
                 lock_ReleaseMutex(&scp->mx);
                 cm_CallbackNotifyChange(scp);
 
-                cm_ReleaseSCacheNoLock(scp);
                 lock_ObtainWrite(&cm_scacheLock);
+                cm_ReleaseSCacheNoLock(scp);
             }
         }
     }