From: Derrick Brashear Date: Fri, 19 Oct 2007 21:39:07 +0000 (+0000) Subject: DEVEL15-darwin80-dnlc-dont-return-deadvnodes-20071019 X-Git-Tag: openafs-devel-1_5_26~12 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aef888121c0f23822aa4a8090da096e999271eda;p=packages%2Fo%2Fopenafs.git DEVEL15-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);