mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
afs-shutdown-cleanup-20071210
LICENSE IPL10 FIXES 74479 clean up allocated resources when we shut down
This commit is contained in:
parent
e26be7b8e3
commit
f5fde5736f
@ -1259,11 +1259,6 @@ afs_shutdown(void)
|
|||||||
shutdown_daemons();
|
shutdown_daemons();
|
||||||
#endif
|
#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
|
#ifdef notdef
|
||||||
shutdown_CB();
|
shutdown_CB();
|
||||||
shutdown_AFS();
|
shutdown_AFS();
|
||||||
@ -1272,7 +1267,6 @@ afs_shutdown(void)
|
|||||||
shutdown_rx();
|
shutdown_rx();
|
||||||
afs_shutdown_BKG();
|
afs_shutdown_BKG();
|
||||||
#endif
|
#endif
|
||||||
return;
|
|
||||||
shutdown_bufferpackage();
|
shutdown_bufferpackage();
|
||||||
shutdown_cache();
|
shutdown_cache();
|
||||||
shutdown_osi();
|
shutdown_osi();
|
||||||
@ -1292,6 +1286,13 @@ afs_shutdown(void)
|
|||||||
memset(&afs_stats_cmfullperf, 0, sizeof(struct afs_stats_CMFullPerf));
|
memset(&afs_stats_cmfullperf, 0, sizeof(struct afs_stats_CMFullPerf));
|
||||||
*/
|
*/
|
||||||
afs_warn(" ALL allocated tables\n");
|
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;
|
afs_shuttingdown = 0;
|
||||||
|
|
||||||
return; /* Just kill daemons for now */
|
return; /* Just kill daemons for now */
|
||||||
|
Loading…
Reference in New Issue
Block a user