From e69894e398ebdf2ecb2a61d4ff6cb9076507884e Mon Sep 17 00:00:00 2001 From: Vitaliy Mysak Date: Fri, 14 Dec 2018 22:52:39 +0000 Subject: [PATCH] Set io_queue for some requests Propagate id of ocf_queue where it is possible This resolves the issue of bottom adapter always getting an ocf_io with io_queue = 0, no matter from which queue function to bottom adapter was called Signed-off-by: Vitaliy Mysak --- src/utils/utils_io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/utils_io.c b/src/utils/utils_io.c index 4feb3d1..8417ee1 100644 --- a/src/utils/utils_io.c +++ b/src/utils/utils_io.c @@ -237,6 +237,7 @@ void ocf_submit_cache_reqs(struct ocf_cache *cache, bytes = req->byte_length; ocf_io_configure(io, addr, bytes, dir, class, flags); + ocf_io_set_queue(io, req->io_queue); ocf_io_set_cmpl(io, req, callback, ocf_submit_obj_req_cmpl); err = ocf_io_set_data(io, req->data, 0); @@ -284,6 +285,7 @@ void ocf_submit_cache_reqs(struct ocf_cache *cache, } ocf_io_configure(io, addr, bytes, dir, class, flags); + ocf_io_set_queue(io, req->io_queue); ocf_io_set_cmpl(io, req, callback, ocf_submit_obj_req_cmpl); err = ocf_io_set_data(io, req->data, total_bytes); @@ -331,6 +333,7 @@ void ocf_submit_obj_req(ocf_data_obj_t obj, struct ocf_request *req, ocf_io_configure(io, req->byte_position, req->byte_length, dir, class, flags); + ocf_io_set_queue(io, req->io_queue); ocf_io_set_cmpl(io, req, callback, ocf_submit_obj_req_cmpl); err = ocf_io_set_data(io, req->data, 0); if (err) {