From 7c6fac305c81af3e10f48560c03db4d2da630527 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 12 Oct 2008 19:06:27 +0000 Subject: [PATCH] disconnected-getvcache-avoid-duplicate-work-20081012 LICENSE IPL10 FIXES 121254 don't do duplicate work finding a vcache we already had --- src/afs/afs_vcache.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 12bf2f0..c950605 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; -- 1.9.4