]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-afs-resetvolumes-zero-serverhost-to-avoid-deadlock-20011226
authorDerrick Brashear <shadow@dementia.org>
Wed, 26 Dec 2001 20:44:31 +0000 (20:44 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 26 Dec 2001 20:44:31 +0000 (20:44 +0000)
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

src/afs/afs_volume.c

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