mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
windows-readonly-volume-callbacks-20071110
avoid a deadlock
This commit is contained in:
parent
dd1535d315
commit
b5935d47fb
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user