From: Derrick Brashear Date: Thu, 11 Nov 2010 23:48:18 +0000 (-0500) Subject: avoid requeueing callbacks during shutdown X-Git-Tag: upstream/1.8.0_pre1^2~4519 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bdbc4494602cf142e2dc046a234dd4ba8610cd51;p=packages%2Fo%2Fopenafs.git avoid requeueing callbacks during shutdown when linux calls osi_linux_free_inode_pages we can try to queue a vcb. this is foolish as we are shutting down. so, don't. Change-Id: I18290396d9107455453de28097e7fad58526ae06 Reviewed-on: http://gerrit.openafs.org/3297 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 130868e26..57c906970 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -205,7 +205,8 @@ afs_FlushVCache(struct vcache *avc, int *slept) vn_reinit(AFSTOV(avc)); #endif afs_FreeAllAxs(&(avc->Access)); - afs_QueueVCB(avc); + if (!afs_shuttingdown) + afs_QueueVCB(avc); ObtainWriteLock(&afs_xcbhash, 460); afs_DequeueCallback(avc); /* remove it from queued callbacks list */ avc->f.states &= ~(CStatd | CUnique);