commit
e89262588f
@ -53,6 +53,10 @@ struct {
|
|||||||
OCF_ERR_CACHE_NOT_EXIST,
|
OCF_ERR_CACHE_NOT_EXIST,
|
||||||
"Cache ID does not exist"
|
"Cache ID does not exist"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
OCF_ERR_CORE_NOT_EXIST,
|
||||||
|
"Core ID does not exist"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
OCF_ERR_CACHE_EXIST,
|
OCF_ERR_CACHE_EXIST,
|
||||||
"Cache ID already exists"
|
"Cache ID already exists"
|
||||||
|
@ -916,7 +916,7 @@ int cache_mngt_remove_core_from_cache(struct kcas_remove_core *cmd)
|
|||||||
|
|
||||||
wait_for_completion_interruptible(&context.compl);
|
wait_for_completion_interruptible(&context.compl);
|
||||||
|
|
||||||
if (!result && cmd->detach) {
|
if (!result && !cmd->detach) {
|
||||||
cache_priv = ocf_cache_get_priv(cache);
|
cache_priv = ocf_cache_get_priv(cache);
|
||||||
mark_core_id_free(cache_priv->core_id_bitmap, cmd->core_id);
|
mark_core_id_free(cache_priv->core_id_bitmap, cmd->core_id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user