afs: afs_CacheTruncateDaemon wake waiters !too full
[openafs.git] / src / afs / afs_dcache.c
index e9cefd6..9b7daa6 100644 (file)
@@ -457,8 +457,10 @@ afs_CacheTruncateDaemon(void)
                if (afs_termState == AFSOP_STOP_TRUNCDAEMON)
                    break;
            }
-           if (!afs_CacheIsTooFull())
+           if (!afs_CacheIsTooFull()) {
                afs_CacheTooFull = 0;
+               afs_WakeCacheWaitersIfDrained();
+           }
        }       /* end of cache cleanup */
        ReleaseWriteLock(&afs_xdcache);