From 2fb13e7e795934398bdb49599e5df8abf619a2bf Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 7 Sep 2013 14:04:32 -0400 Subject: [PATCH] afs: afs_CacheTruncateDaemon wake waiters !too full When processing afs_CacheTruncateDaemon() if the cache is no longer too full, then wake the waiters. Change-Id: I114341f8a71654b0a064d6dad2a704dd1fa8dbe2 Reviewed-on: http://gerrit.openafs.org/10236 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/afs/afs_dcache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index e9cefd6238..9b7daa641f 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -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);