mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
DEVEL15-windows-server-lock-error-20071224
LICENSE MIT The cm_serverLock must be write locked to modify the refCount (cherry picked from commit 1b90fc5329dc7dd2055ab9150e3709b2b2cfac06)
This commit is contained in:
parent
a1076e12af
commit
f3d00f8f23
@ -35,13 +35,13 @@ cm_ForceNewConnectionsAllServers(void)
|
||||
{
|
||||
cm_server_t *tsp;
|
||||
|
||||
lock_ObtainRead(&cm_serverLock);
|
||||
lock_ObtainWrite(&cm_serverLock);
|
||||
for (tsp = cm_allServersp; tsp; tsp = tsp->allNextp) {
|
||||
cm_GetServerNoLock(tsp);
|
||||
cm_ForceNewConnections(tsp);
|
||||
cm_PutServerNoLock(tsp);
|
||||
}
|
||||
lock_ReleaseRead(&cm_serverLock);
|
||||
lock_ReleaseWrite(&cm_serverLock);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user