Reorganize remove-inacitve
command
Don't remove inactive core if it has dirt cache lines assigned unless `force` flag is specified. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -1517,6 +1517,11 @@ int cache_mngt_remove_inactive_core(struct kcas_remove_inactive *cmd)
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
if (ocf_mngt_core_is_dirty(core) && !cmd->force) {
|
||||
result = -KCAS_ERR_INACTIVE_CORE_IS_DIRTY;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
/*
|
||||
* Destroy exported object - in case of error during destruction of
|
||||
* exported object, instead of trying rolling this back we rather
|
||||
|
Reference in New Issue
Block a user