Initialize sequential cutoff for detached cores

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2020-12-23 14:00:09 +01:00
parent 08af1192d4
commit 6270d917f8

View File

@ -432,6 +432,10 @@ static int _ocf_mngt_init_instance_add_cores(
if (!core->counters) if (!core->counters)
goto err; goto err;
ret = ocf_core_seq_cutoff_init(core);
if (ret < 0)
goto err;
if (!core->opened) { if (!core->opened) {
env_bit_set(ocf_cache_state_incomplete, env_bit_set(ocf_cache_state_incomplete,
&cache->cache_state); &cache->cache_state);
@ -442,10 +446,6 @@ static int _ocf_mngt_init_instance_add_cores(
continue; continue;
} }
ret = ocf_core_seq_cutoff_init(core);
if (ret < 0)
goto err;
length = ocf_volume_get_length(&core->volume); length = ocf_volume_get_length(&core->volume);
if (length != core->conf_meta->length) { if (length != core->conf_meta->length) {
ocf_cache_log(cache, log_err, ocf_cache_log(cache, log_err,