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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
Jeffrey Altman 2013-09-07 14:04:32 -04:00 committed by Derrick Brashear
parent 13a746abfb
commit 2fb13e7e79

View 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);