LICENSE MIT
When walking or modifying the cm_server_vols_t associated with a given
cm_server_t the mutex must be held. Otherwise, races can occur.
tsp->downTime = osi_Time();
}
cm_ForceNewConnections(tsp);
- lock_ReleaseMutex(&tsp->mx);
-
/* Now update the volume status */
for (tsrvp = tsp->vols; tsrvp; tsrvp = tsrvp->nextp) {
for (i=0; i<NUM_SERVER_VOLS; i++) {
}
}
}
+ lock_ReleaseMutex(&tsp->mx);
}
}
}
cm_volume_t * volp;
int i;
- lock_ReleaseMutex(&tsp->mx);
for (tsrvp = tsp->vols; tsrvp; tsrvp = tsrvp->nextp) {
for (i=0; i<NUM_SERVER_VOLS; i++) {
if (tsrvp->ids[i] != 0) {
}
}
}
- lock_ObtainMutex(&tsp->mx);
}
} else {
/* mark server as down */
cm_volume_t * volp;
int i;
- lock_ReleaseMutex(&tsp->mx);
for (tsrvp = tsp->vols; tsrvp; tsrvp = tsrvp->nextp) {
for (i=0; i<NUM_SERVER_VOLS; i++) {
if (tsrvp->ids[i] != 0) {
}
}
}
- lock_ObtainMutex(&tsp->mx);
}
}