Set proper cache pointer in front volumes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
f96451a698
commit
cc22c57cb7
@ -1960,6 +1960,7 @@ static void _ocf_mngt_init_cache_front_volume(ocf_pipeline_t pipeline,
|
|||||||
result = ocf_volume_init(&cache->device->front_volume, type, &uuid, false);
|
result = ocf_volume_init(&cache->device->front_volume, type, &uuid, false);
|
||||||
if (result)
|
if (result)
|
||||||
OCF_PL_FINISH_RET(context->pipeline, result);
|
OCF_PL_FINISH_RET(context->pipeline, result);
|
||||||
|
cache->device->front_volume.cache = cache;
|
||||||
context->flags.front_volume_inited = true;
|
context->flags.front_volume_inited = true;
|
||||||
|
|
||||||
result = ocf_volume_open(&cache->device->front_volume, NULL);
|
result = ocf_volume_open(&cache->device->front_volume, NULL);
|
||||||
|
@ -229,6 +229,8 @@ int ocf_mngt_core_init_front_volume(ocf_core_t core)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
core->front_volume.cache = cache;
|
||||||
|
|
||||||
ret = ocf_volume_open(&core->front_volume, NULL);
|
ret = ocf_volume_open(&core->front_volume, NULL);
|
||||||
if (ret)
|
if (ret)
|
||||||
ocf_volume_deinit(&core->front_volume);
|
ocf_volume_deinit(&core->front_volume);
|
||||||
|
Loading…
Reference in New Issue
Block a user