From: Chas Williams Date: Sat, 8 May 2004 05:20:39 +0000 (+0000) Subject: shutdown-vcache-free-after-using-20040507 X-Git-Tag: openafs-devel-1_3_64~23 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dd38ea87cf0208463e64379e9b74fbe5fc7297fe;p=packages%2Fo%2Fopenafs.git shutdown-vcache-free-after-using-20040507 FIXES 4065 don't free the VClist until after use --- diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index e467beb0f..6f56d46b1 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -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