]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: CacheTruncateDaemon work until Cache Drained
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 9 Sep 2013 13:20:32 +0000 (09:20 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 14 Nov 2013 13:29:56 +0000 (05:29 -0800)
commit7d70e9819bb42ad45defb961fb5cee97653349b8
treefc8ffb14a0746985b3ec04ebc333e64ad58653ba
parent1d9cc8fa66e32b7e27a81c474d17f5134ff1f0c9
afs: CacheTruncateDaemon work until Cache Drained

The afs_CacheTruncateDeamon() thread will not sleep until both
'afs_CacheTooFull' and 'afs_WaitForCacheDrain' are true but the
thread will stop freeing space in the cache when 'afs_CacheTooFull'
is true which prevents 'afs_WaitForCacheDrain' from ever becoming
true if it is not already.

Make the conditional for doing work include 'afs_WaitForCacheDrain'.

Change-Id: Id25929080eecd390d4ed56e5fffd6fe56cc8502c
Reviewed-on: http://gerrit.openafs.org/10436
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_dcache.c