Merge pull request #366 from robertbaldyga/initialize-seq-cutoff-correctly

Initialize seqential cutoff in try-add / load paths
This commit is contained in:
Robert Baldyga 2020-04-23 09:11:14 +02:00 committed by GitHub
commit 8fb5317247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: