diff --git a/src/mngt/ocf_mngt_cache.c b/src/mngt/ocf_mngt_cache.c index 68f93cf..cee7c1b 100644 --- a/src/mngt/ocf_mngt_cache.c +++ b/src/mngt/ocf_mngt_cache.c @@ -1220,6 +1220,8 @@ static void _ocf_mngt_attach_init_services(ocf_pipeline_t pipeline, ocf_cache_t cache = context->cache; ocf_error_t result; + __setup_promotion_policy(cache); + if (context->metadata.cleaner_disabled) __set_cleaning_policy(cache, ocf_cleaning_nop); @@ -1230,8 +1232,6 @@ static void _ocf_mngt_attach_init_services(ocf_pipeline_t pipeline, OCF_PL_FINISH_RET(pipeline, result); } - __setup_promotion_policy(cache); - /* In initial cache state there is no dirty data, so all dirty data is considered to be flushed */