From 521258bcc8ec60bfec899842ef027a6d3d600a03 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Tue, 30 Mar 2021 13:05:17 -0500 Subject: [PATCH] Remove dirty check from LRU cleaner getter callback This check is incorrect as cacheline status may change from dirty to clean at any point during cleaning, except for when the hash bucket is locked. Signed-off-by: Adam Rutkowski --- src/eviction/lru.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/eviction/lru.c b/src/eviction/lru.c index 4eb9beb..d3000c4 100644 --- a/src/eviction/lru.c +++ b/src/eviction/lru.c @@ -525,7 +525,6 @@ static int evp_lru_clean_get(ocf_cache_t cache, void *getter_context, if (ctx->cline[idx] == end_marker) return -1; - ENV_BUG_ON(!metadata_test_dirty(ctx->cache, ctx->cline[idx])); *line = ctx->cline[idx]; return 0;