From 677e9e07e5470a5dee5f3e28143b0a31be5b4562 Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Fri, 21 Feb 2020 16:05:20 +0100 Subject: [PATCH] Allow 0ms activity threshold and wake up time for ALRU Signed-off-by: Jan Musial --- inc/cleaning/alru.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/cleaning/alru.h b/inc/cleaning/alru.h index 17311ad..66548bb 100644 --- a/inc/cleaning/alru.h +++ b/inc/cleaning/alru.h @@ -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 */