detach: Don't deinitialize cleaning policy twice

The cleaning metadata has been deinitialized in the previous pipeline step
together with other services

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk 2025-03-17 14:50:46 +01:00
parent 1e75a9826d
commit 69987bd20c

View File

@ -3821,7 +3821,6 @@ static void ocf_mngt_cache_detach_remove_cores(ocf_pipeline_t pipeline,
/* remove cacheline metadata and cleaning policy meta for all cores */
for_each_core_metadata(cache, core, core_id) {
cache_mngt_core_deinit_attached_meta(core);
cache_mngt_core_remove_from_cleaning_pol(core);
if (--no == 0)
break;
}