Initialize seqential cutoff in try-add / load paths

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2020-04-23 00:15:32 +02:00
parent 188559416c
commit 15fd53cbb0
2 changed files with 4 additions and 0 deletions

View File

@ -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));

View File

@ -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: