Set proper cache pointer in front volumes

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2021-08-16 06:47:34 +02:00
parent f96451a698
commit cc22c57cb7
2 changed files with 3 additions and 0 deletions

View File

@@ -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);
if (result)
OCF_PL_FINISH_RET(context->pipeline, result);
cache->device->front_volume.cache = cache;
context->flags.front_volume_inited = true;
result = ocf_volume_open(&cache->device->front_volume, NULL);