disconnected-getvcache-avoid-duplicate-work-20081012

LICENSE IPL10
FIXES 121254

don't do duplicate work finding a vcache we already had
This commit is contained in:
Simon Wilkinson 2008-10-12 19:06:27 +00:00 committed by Derrick Brashear
parent 726fc5b842
commit 7c6fac305c

View File

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