Eliminate queue -> cache mapping
Eliminate need to resolve cache based on the queue. This allows to share the queue between cache instances. The queue still holds pointer to a cache that owns the queue, but no management or io path relies on the queue -> cache mapping. Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com> Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:

committed by
Michal Mielewczyk

parent
460cd461d3
commit
8b93b699c3
@@ -432,7 +432,7 @@ static void _ocf_mngt_flush_container(
|
||||
fc->end = end;
|
||||
fc->context = context;
|
||||
|
||||
req = ocf_req_new_mngt(cache->mngt_queue);
|
||||
req = ocf_req_new_mngt(cache, cache->mngt_queue);
|
||||
if (!req) {
|
||||
error = OCF_ERR_NO_MEM;
|
||||
goto finish;
|
||||
|
Reference in New Issue
Block a user