From: Simon Wilkinson Date: Wed, 21 Jan 2009 21:33:43 +0000 (+0000) Subject: DEVEL15-disconnected-linux-dont-inactive-while-disconnected-20090121 X-Git-Tag: openafs-devel-1_5_57~17 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0553066a230e94ddd7d7e0959528311d37b0a94c;p=packages%2Fo%2Fopenafs.git DEVEL15-disconnected-linux-dont-inactive-while-disconnected-20090121 LICENSE IPL10 FIXES 124175 possibly not the ultimate right fix but it will make things work for now (cherry picked from commit 81e1d5403438929bc6380c05bdacb808a31aaa37) --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 6b99656db..8cc6a58ec 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -999,7 +999,9 @@ afs_dentry_iput(struct dentry *dp, struct inode *ip) struct vcache *vcp = VTOAFS(ip); AFS_GLOCK(); - (void) afs_InactiveVCache(vcp, NULL); + if (!AFS_IS_DISCONNECTED || (vcp->states & CUnlinked)) { + (void) afs_InactiveVCache(vcp, NULL); + } AFS_GUNLOCK(); #ifdef DCACHE_NFSFS_RENAMED #ifdef AFS_LINUX26_ENV