From 29251473953b2a3be78ab31ed2bea7e11e0c8300 Mon Sep 17 00:00:00 2001 From: Michal Rakowski Date: Mon, 24 Jun 2019 14:24:10 +0200 Subject: [PATCH] Remove reduntant dirty check When flush completion is called there could be some clines marked as dirty since those could be in-use during flushing. --- src/mngt/ocf_mngt_flush.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/mngt/ocf_mngt_flush.c b/src/mngt/ocf_mngt_flush.c index 69684d4..df49e3e 100644 --- a/src/mngt/ocf_mngt_flush.c +++ b/src/mngt/ocf_mngt_flush.c @@ -598,20 +598,6 @@ static void _ocf_mngt_flush_finish(ocf_pipeline_t pipeline, void *priv, ocf_cache_t cache = context->cache; ocf_core_t core = context->core; - if (!error) { - switch(context->op) { - case flush_cache: - case purge_cache: - ENV_BUG_ON(ocf_mngt_cache_is_dirty(cache)); - break; - case flush_core: - case purge_core: - ENV_BUG_ON(env_atomic_read( - &core->runtime_meta->dirty_clines)); - break; - } - } - _ocf_mngt_end_flush(cache); switch (context->op) {