From: Simon Wilkinson Date: Sun, 12 Oct 2008 19:06:27 +0000 (+0000) Subject: disconnected-getvcache-avoid-duplicate-work-20081012 X-Git-Tag: openafs-devel-1_5_61~760 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7c6fac305c81af3e10f48560c03db4d2da630527;p=packages%2Fo%2Fopenafs.git disconnected-getvcache-avoid-duplicate-work-20081012 LICENSE IPL10 FIXES 121254 don't do duplicate work finding a vcache we already had --- diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 12bf2f0cd..c95060580 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -2021,12 +2021,7 @@ afs_GetVCache(register struct VenusFid *afid, struct vrequest *areq, if (AFS_IS_DISCONNECTED) { if (AFS_IS_DISCON_RW) { - /* Seek the vnode manually. */ - ObtainSharedLock(&afs_xvcache, 738); - avc = afs_FindVCache(afid, NULL, 1); - ReleaseSharedLock(&afs_xvcache); - - if (vType(avc) == VDIR) + if (vType(tvc) == VDIR) OutStatus.FileType = Directory; code = tvc?0:ENOENT;