From 506f2a1fbd8e5df599bd9f90b05e7cf4d5427136 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 17 Apr 2008 18:27:09 +0000 Subject: [PATCH] STABLE14-afs-shutdown-cleanup-20071210 LICENSE IPL10 FIXES 74479 clean up allocated resources when we shut down (cherry picked from commit f5fde5736f333e284a244467641f08727481b4ae) --- src/afs/afs_call.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index 582f96ddb..dcf0a8ba4 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -1875,11 +1875,6 @@ afs_shutdown(void) shutdown_daemons(); #endif - /* Close file only after daemons which can write to it are stopped. */ - if (afs_cacheInodep) { /* memcache won't set this */ - osi_UFSClose(afs_cacheInodep); /* Since we always leave it open */ - afs_cacheInodep = 0; - } #ifdef notdef shutdown_CB(); shutdown_AFS(); @@ -1888,7 +1883,6 @@ afs_shutdown(void) shutdown_rx(); afs_shutdown_BKG(); #endif - return; shutdown_bufferpackage(); shutdown_cache(); shutdown_osi(); @@ -1908,6 +1902,13 @@ afs_shutdown(void) memset(&afs_stats_cmfullperf, 0, sizeof(struct afs_stats_CMFullPerf)); */ afs_warn(" ALL allocated tables\n"); + + /* Close file only after daemons which can write to it are stopped. */ + if (afs_cacheInodep) { /* memcache won't set this */ + osi_UFSClose(afs_cacheInodep); /* Since we always leave it open */ + afs_cacheInodep = 0; + } + afs_shuttingdown = 0; return; /* Just kill daemons for now */ -- 2.39.5