Merge pull request #366 from robertbaldyga/initialize-seq-cutoff-correctly
Initialize seqential cutoff in try-add / load paths
This commit is contained in:
commit
8fb5317247
@ -437,6 +437,8 @@ static int _ocf_mngt_init_instance_add_cores(
|
||||
continue;
|
||||
}
|
||||
|
||||
ocf_core_seq_cutoff_init(core);
|
||||
|
||||
hd_lines = ocf_bytes_2_lines(cache,
|
||||
ocf_volume_get_length(&core->volume));
|
||||
|
||||
|
@ -289,6 +289,8 @@ static void ocf_mngt_cache_try_add_core_insert(ocf_pipeline_t pipeline,
|
||||
if (!(--cache->ocf_core_inactive_count))
|
||||
env_bit_clear(ocf_cache_state_incomplete, &cache->cache_state);
|
||||
|
||||
ocf_core_seq_cutoff_init(core);
|
||||
|
||||
OCF_PL_NEXT_RET(pipeline);
|
||||
|
||||
error_after_open:
|
||||
|
Loading…
Reference in New Issue
Block a user