diff --git a/src/afs/afs_vcache.c b/src/afs/afs_vcache.c index 3e487235d6..8af3cdec27 100644 --- a/src/afs/afs_vcache.c +++ b/src/afs/afs_vcache.c @@ -736,10 +736,11 @@ afs_ShakeLooseVCaches(afs_int32 anumber) i = 0; continue; /* start over - may have raced. */ } - if (tq == uq) { + if (uq == &VLRU) { if (anumber && !defersleep) { defersleep = 1; - tq = VLRU.prev; + uq = VLRU.prev; + i = 0; continue; } break;