From: Derrick Brashear Date: Fri, 19 Oct 2007 21:40:52 +0000 (+0000) Subject: STABLE14-darwin80-dnlc-dont-return-deadvnodes-20071019 X-Git-Tag: openafs-stable-1_4_5pre4~2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b567218e05184a3426ad16e8f4ee74d5a55d12c9;p=packages%2Fo%2Fopenafs.git STABLE14-darwin80-dnlc-dont-return-deadvnodes-20071019 FIXES 41550 obvious. if we are going to be like GetVCache, we should (cherry picked from commit 7e752ba085729991101782fe40f9db8c6f384734) --- diff --git a/src/afs/afs_osidnlc.c b/src/afs/afs_osidnlc.c index 218af5e5b..e01e5a173 100644 --- a/src/afs/afs_osidnlc.c +++ b/src/afs/afs_osidnlc.c @@ -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);