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 <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2021-03-30 13:05:17 -05:00
parent c2e588be9d
commit 521258bcc8

View File

@ -525,7 +525,6 @@ static int evp_lru_clean_get(ocf_cache_t cache, void *getter_context,
if (ctx->cline[idx] == end_marker) if (ctx->cline[idx] == end_marker)
return -1; return -1;
ENV_BUG_ON(!metadata_test_dirty(ctx->cache, ctx->cline[idx]));
*line = ctx->cline[idx]; *line = ctx->cline[idx];
return 0; return 0;