afs-resetvolumes-zero-serverhost-to-avoid-deadlock-20011120

the equivalent of what's done in InstallUVolumeEntry to avoid a deadlock
but just for this server since it's all we're dealing with
This commit is contained in:
Derrick Brashear 2001-11-20 20:04:55 +00:00
parent c53a034e36
commit 7d38c7fe58

View File

@ -225,6 +225,7 @@ void afs_ResetVolumes(struct server *srvp)
for (vp=afs_volumes[j]; vp; vp=vp->next) { for (vp=afs_volumes[j]; vp; vp=vp->next) {
for (k=0; k<MAXHOSTS; k++) { for (k=0; k<MAXHOSTS; k++) {
if (!srvp || (vp->serverHost[k] == srvp)) { if (!srvp || (vp->serverHost[k] == srvp)) {
vp->serverHost[k] = 0;
afs_ResetVolumeInfo(vp); afs_ResetVolumeInfo(vp);
break; break;
} }