Merge pull request #347 from imjfckm/allow-zero-in-alru-params

Allow 0ms activity threshold and wake up time for ALRU
This commit is contained in:
Robert Baldyga
2020-02-25 08:53:45 +01:00
committed by GitHub

View File

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