]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
shutdown-vcache-free-after-using-20040507
authorChas Williams <chas@cmf.nrl.navy.mil>
Sat, 8 May 2004 05:20:39 +0000 (05:20 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 8 May 2004 05:20:39 +0000 (05:20 +0000)
FIXES 4065

don't free the VClist until after use

src/afs/afs_vcache.c

index e467beb0f7104d1f3be228a0ec8a9b9a2e00b4f6..6f56d46b1102d1691eabfbafde6404ae53b7256b 100644 (file)
@@ -2902,12 +2902,6 @@ shutdown_vcache(void)
      * free vcache entries and all the vcache entries are active ones then we allocate
      * an additional one - admittedly we almost never had that occur.
      */
-#if    !defined(AFS_OSF_ENV)
-    afs_osi_Free(Initial_freeVCList, afs_cacheStats * sizeof(struct vcache));
-#endif
-#ifdef  KERNEL_HAVE_PIN
-    unpin(Initial_freeVCList, afs_cacheStats * sizeof(struct vcache));
-#endif
 
     {
        register struct afs_q *tq, *uq;
@@ -2979,6 +2973,12 @@ shutdown_vcache(void)
     }
     afs_cbrSpace = 0;
 
+#if    !defined(AFS_OSF_ENV)
+    afs_osi_Free(Initial_freeVCList, afs_cacheStats * sizeof(struct vcache));
+#endif
+#ifdef  KERNEL_HAVE_PIN
+    unpin(Initial_freeVCList, afs_cacheStats * sizeof(struct vcache));
+#endif
 #if    !defined(AFS_OSF_ENV)
     freeVCList = Initial_freeVCList = 0;
 #endif