From b567218e05184a3426ad16e8f4ee74d5a55d12c9 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 19 Oct 2007 21:40:52 +0000 Subject: [PATCH] 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) --- src/afs/afs_osidnlc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- 2.39.5