Merge pull request #432 from robertbaldyga/seq-cutoff-detached-core
Initialize sequential cutoff for detached cores
This commit is contained in:
commit
efc8786ed3
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user