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)
This commit is contained in:
Chas Williams 2006-01-26 19:30:07 +00:00 committed by Derrick Brashear
parent b12283bf2b
commit 4881ce6c77

View File

@ -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