Don't destroy stop pipeline if detach cache failed
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
a03cfacd5e
commit
62307d82b8
@ -3860,14 +3860,14 @@ static void ocf_mngt_cache_detach_finish(ocf_pipeline_t pipeline,
|
|||||||
}
|
}
|
||||||
|
|
||||||
_ocf_mngt_cache_set_detached(cache);
|
_ocf_mngt_cache_set_detached(cache);
|
||||||
|
|
||||||
|
ocf_pipeline_destroy(cache->stop_pipeline);
|
||||||
|
cache->stop_pipeline = NULL;
|
||||||
} else {
|
} else {
|
||||||
ocf_cache_log(cache, log_err,
|
ocf_cache_log(cache, log_err,
|
||||||
"Detaching device failed\n");
|
"Detaching device failed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
ocf_pipeline_destroy(cache->stop_pipeline);
|
|
||||||
cache->stop_pipeline = NULL;
|
|
||||||
|
|
||||||
context->cmpl(cache, context->priv,
|
context->cmpl(cache, context->priv,
|
||||||
error ?: context->cache_write_error);
|
error ?: context->cache_write_error);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user