Allow 0ms activity threshold and wake up time for ALRU

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial 2020-02-21 16:05:20 +01:00
parent 49d8f10953
commit 677e9e07e5

View File

@ -27,7 +27,7 @@ enum ocf_cleaning_alru_parameters {
*/ */
/** Wake up time minimum value */ /** Wake up time minimum value */
#define OCF_ALRU_MIN_WAKE_UP 1 #define OCF_ALRU_MIN_WAKE_UP 0
/** Wake up time maximum value */ /** Wake up time maximum value */
#define OCF_ALRU_MAX_WAKE_UP 3600 #define OCF_ALRU_MAX_WAKE_UP 3600
/** Wake up time default value */ /** Wake up time default value */
@ -60,7 +60,7 @@ enum ocf_cleaning_alru_parameters {
*/ */
/** Idle time before flushing thread can start minimum value */ /** Idle time before flushing thread can start minimum value */
#define OCF_ALRU_MIN_ACTIVITY_THRESHOLD 500 #define OCF_ALRU_MIN_ACTIVITY_THRESHOLD 0
/** Idle time before flushing thread can start maximum value */ /** Idle time before flushing thread can start maximum value */
#define OCF_ALRU_MAX_ACTIVITY_THRESHOLD 1000000 #define OCF_ALRU_MAX_ACTIVITY_THRESHOLD 1000000
/** Idle time before flushing thread can start default value */ /** Idle time before flushing thread can start default value */