From 6a1187a8b33dd23bdb297b698074f2a6245d7d41 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Wed, 2 Aug 2023 09:13:42 +0200 Subject: [PATCH] casadm: list cores of detached cache Signed-off-by: Michal Mielewczyk --- casadm/cas_lib.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/casadm/cas_lib.c b/casadm/cas_lib.c index 8889ed8..ff3f783 100644 --- a/casadm/cas_lib.c +++ b/casadm/cas_lib.c @@ -808,10 +808,6 @@ struct cache_device *get_cache_device(const struct kcas_cache_info *info, bool b cache->promotion_policy = info->info.promotion_policy; cache->size = info->info.cache_line_size; - if ((info->info.state & (1 << ocf_cache_state_running)) == 0) { - return cache; - } - for (cache->core_count = 0; cache->core_count < info->info.core_count; ++cache->core_count) { core_id = info->core_id[cache->core_count];