From 4881ce6c779abac9d19e8bb98cce95c1cd66f323 Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Thu, 26 Jan 2006 19:30:07 +0000 Subject: [PATCH] STABLE14-linux-vcache-extra-ref-unneeded-20060126 FIXES 25829 the dynamic/system inode version of the linux client already keeps an extra reference when the inode is on the vcache list. the inode/vnode should not go away while we are trying to flush the dcache children. (cherry picked from commit 78835720e0eac5897568f0ce32cd0ec20dc4c569) --- src/afs/afs_vcache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index fbb7a5bcf..e4186ce5d 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -679,7 +679,6 @@ afs_NewVCache(struct VenusFid *afid, struct server *serverp) if (tvc != afs_globalVp && VREFCOUNT(tvc) > 1 && tvc->opens == 0) { struct dentry *dentry; struct list_head *cur, *head; - AFS_FAST_HOLD(tvc); AFS_GUNLOCK(); #if defined(AFS_LINUX24_ENV) spin_lock(&dcache_lock); @@ -715,7 +714,6 @@ restart: #endif inuse: AFS_GLOCK(); - AFS_FAST_RELE(tvc); } #endif -- 2.39.5