afs-lookup-put-back-vcache-entry-on-failed-evalmountpoint-20010927
authorDerrick Brashear <shadow@dementia.org>
Thu, 27 Sep 2001 18:37:49 +0000 (18:37 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 27 Sep 2001 18:37:49 +0000 (18:37 +0000)
based on observations of effects related to
afs-lookup-check-evalmountpoint-return-20010221 and affirmed based on
mail from Todd_DeSantis@transarc.com

this should reduce but perhaps not eliminate the VLRU cycle: increase
-stat parameter problem on Linux as it's not yet clear that this is the
only problem and circumstantially it is probably not.

src/afs/VNOPS/afs_vnop_lookup.c

index 26dcd51..b81570c 100644 (file)
@@ -1199,6 +1199,7 @@ afs_lookup(adp, aname, avcp, acred)
            ReleaseWriteLock(&tvc->lock);
 
            if (code) {
+               afs_PutVCache(tvc, WRITE_LOCK);
                if (tvolp) afs_PutVolume(tvolp, WRITE_LOCK);
                goto done;
            }