Update cache's state after detach

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk 2023-07-07 12:54:29 +02:00 committed by Rafal Stefanowski
parent 695d77e3b5
commit 09335cd6f2

View File

@ -3788,6 +3788,8 @@ static void ocf_mngt_cache_detach_finish(ocf_pipeline_t pipeline,
ocf_cache_log(cache, log_warn,
"Device detached with errors\n");
}
_ocf_mngt_cache_set_detached(cache);
} else {
ocf_cache_log(cache, log_err,
"Detaching device failed\n");