From bb2dc54732c865f37b0e9c5b928c850daa795b4d Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 7 Feb 2008 21:20:02 +0000 Subject: [PATCH] windows-scache-refcount-race-20080207 LICENSE MIT if we are going to call a NoLock function better be holding the lock --- src/WINNT/afsd/cm_callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_callback.c b/src/WINNT/afsd/cm_callback.c index 4cea28cabe..6c4b447d7e 100644 --- a/src/WINNT/afsd/cm_callback.c +++ b/src/WINNT/afsd/cm_callback.c @@ -1928,8 +1928,8 @@ void cm_CheckCBExpiration(void) lock_ReleaseMutex(&scp->mx); cm_CallbackNotifyChange(scp); - cm_ReleaseSCacheNoLock(scp); lock_ObtainWrite(&cm_scacheLock); + cm_ReleaseSCacheNoLock(scp); } } }