windows-readonly-volume-callbacks-20071110

avoid a deadlock
This commit is contained in:
Jeffrey Altman 2007-11-10 22:50:44 +00:00
parent dd1535d315
commit b5935d47fb

View File

@ -1517,17 +1517,15 @@ cm_VolumeRenewROCallbacks(void)
cm_InitReq(&req);
lock_ReleaseRead(&cm_volumeLock);
if (cm_GetSCache(&fid, &scp, cm_rootUserp, &req) == 0) {
lock_ReleaseRead(&cm_volumeLock);
lock_ObtainMutex(&scp->mx);
cm_GetCallback(scp, cm_rootUserp, &req, 1);
lock_ReleaseMutex(&scp->mx);
cm_ReleaseSCache(scp);
lock_ObtainRead(&cm_volumeLock);
}
lock_ObtainRead(&cm_volumeLock);
}
}
lock_ReleaseRead(&cm_volumeLock);
}