Set queue for metadata io submitted to cache volume
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
a9d07917a1
commit
f5463d9a16
@ -113,6 +113,8 @@ int metadata_io_read_i_atomic(ocf_cache_t cache, ocf_queue_t queue,
|
|||||||
SECTORS_TO_BYTES(i),
|
SECTORS_TO_BYTES(i),
|
||||||
SECTORS_TO_BYTES(curr_count),
|
SECTORS_TO_BYTES(curr_count),
|
||||||
OCF_READ, 0, 0);
|
OCF_READ, 0, 0);
|
||||||
|
|
||||||
|
ocf_io_set_queue(io, queue);
|
||||||
ocf_io_set_cmpl(io, &meta_atom_req, NULL,
|
ocf_io_set_cmpl(io, &meta_atom_req, NULL,
|
||||||
metadata_io_read_i_atomic_end);
|
metadata_io_read_i_atomic_end);
|
||||||
result = ocf_io_set_data(io, data, 0);
|
result = ocf_io_set_data(io, data, 0);
|
||||||
@ -206,6 +208,7 @@ static int ocf_restart_meta_io(struct ocf_request *req)
|
|||||||
PAGES_TO_BYTES(meta_io_req->count),
|
PAGES_TO_BYTES(meta_io_req->count),
|
||||||
OCF_WRITE, 0, 0);
|
OCF_WRITE, 0, 0);
|
||||||
|
|
||||||
|
ocf_io_set_queue(io, req->io_queue);
|
||||||
ocf_io_set_cmpl(io, meta_io_req, NULL, metadata_io_i_asynch_cmpl);
|
ocf_io_set_cmpl(io, meta_io_req, NULL, metadata_io_i_asynch_cmpl);
|
||||||
ret = ocf_io_set_data(io, meta_io_req->data, 0);
|
ret = ocf_io_set_data(io, meta_io_req->data, 0);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
@ -388,6 +391,7 @@ static int metadata_io_i_asynch(ocf_cache_t cache, ocf_queue_t queue, int dir,
|
|||||||
PAGES_TO_BYTES(a_req->reqs[i].count),
|
PAGES_TO_BYTES(a_req->reqs[i].count),
|
||||||
dir, 0, 0);
|
dir, 0, 0);
|
||||||
|
|
||||||
|
ocf_io_set_queue(io, queue);
|
||||||
ocf_io_set_cmpl(io, &a_req->reqs[i], NULL,
|
ocf_io_set_cmpl(io, &a_req->reqs[i], NULL,
|
||||||
metadata_io_i_asynch_cmpl);
|
metadata_io_i_asynch_cmpl);
|
||||||
error = ocf_io_set_data(io, a_req->reqs[i].data, 0);
|
error = ocf_io_set_data(io, a_req->reqs[i].data, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user