]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-darwin80-dnlc-dont-return-deadvnodes-20071019
authorDerrick Brashear <shadow@dementia.org>
Fri, 19 Oct 2007 21:40:52 +0000 (21:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 19 Oct 2007 21:40:52 +0000 (21:40 +0000)
FIXES 41550

obvious. if we are going to be like GetVCache, we should

(cherry picked from commit 7e752ba085729991101782fe40f9db8c6f384734)

src/afs/afs_osidnlc.c

index 218af5e5b9c10e5bacf19c0aebb91955380d4760..e01e5a1732085dc8a021d987bae10e6b81bdd266 100644 (file)
@@ -242,7 +242,12 @@ osi_dnlc_lookup(struct vcache *adp, char *aname, int locktype)
        ReleaseReadLock(&afs_xvcache);
        dnlcstats.misses++;
     } else {
-       if (tvc->states & CVInit) {
+       if ((tvc->states & CVInit)
+#ifdef  AFS_DARWIN80_ENV
+           ||(tvc->states & CDeadVnode)
+#endif
+           )      
+       {
            ReleaseReadLock(&afs_xvcache);
            dnlcstats.misses++;
            osi_dnlc_remove(adp, aname, tvc);