Move and rename ocf_engine_push_req_* from engine_common to ocf_queue_push_req_* in ocf_queue
Signed-off-by: Ian Levine <ian.levine@huawei.com> Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:

committed by
Robert Baldyga

parent
de32a9649a
commit
038126e9ab
@@ -93,7 +93,7 @@ static void metadata_io_read_i_atomic_step_end(struct ocf_io *io, int error)
|
||||
context->curr_offset += context->curr_count;
|
||||
|
||||
if (context->count > 0)
|
||||
ocf_engine_push_req_front(context->req, true);
|
||||
ocf_queue_push_req_front(context->req, true);
|
||||
else
|
||||
metadata_io_read_i_atomic_complete(context, 0);
|
||||
}
|
||||
@@ -181,7 +181,7 @@ int metadata_io_read_i_atomic(ocf_cache_t cache, ocf_queue_t queue, void *priv,
|
||||
context->compl_hndl = compl_hndl;
|
||||
context->priv = priv;
|
||||
|
||||
ocf_engine_push_req_front(context->req, true);
|
||||
ocf_queue_push_req_front(context->req, true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -269,7 +269,7 @@ static void metadata_io_req_finalize(struct metadata_io_request *m_req)
|
||||
|
||||
static void metadata_io_page_lock_acquired(struct ocf_request *req)
|
||||
{
|
||||
ocf_engine_push_req_front(req, true);
|
||||
ocf_queue_push_req_front(req, true);
|
||||
}
|
||||
|
||||
static int metadata_io_restart_req(struct ocf_request *req)
|
||||
@@ -401,7 +401,7 @@ void metadata_io_req_complete(struct metadata_io_request *m_req)
|
||||
}
|
||||
|
||||
m_req->req.engine_handler = metadata_io_restart_req;
|
||||
ocf_engine_push_req_front(&m_req->req, true);
|
||||
ocf_queue_push_req_front(&m_req->req, true);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright(c) 2012-2022 Intel Corporation
|
||||
* Copyright(c) 2024 Huawei Technologies
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
||||
@@ -70,7 +71,7 @@ static int passive_io_resume(struct ocf_request *req)
|
||||
|
||||
static void passive_io_page_lock_acquired(struct ocf_request *req)
|
||||
{
|
||||
ocf_engine_push_req_front(req, true);
|
||||
ocf_queue_push_req_front(req, true);
|
||||
}
|
||||
|
||||
int ocf_metadata_passive_update(ocf_cache_t cache, struct ocf_io *io,
|
||||
|
@@ -389,7 +389,7 @@ static void raw_dynamic_load_all_read_end(struct ocf_io *io, int error)
|
||||
}
|
||||
|
||||
context->req->engine_handler = raw_dynamic_load_all_update;
|
||||
ocf_engine_push_req_front(context->req, true);
|
||||
ocf_queue_push_req_front(context->req, true);
|
||||
}
|
||||
|
||||
static int raw_dynamic_load_all_read(struct ocf_request *req)
|
||||
@@ -455,7 +455,7 @@ static int raw_dynamic_load_all_update(struct ocf_request *req)
|
||||
}
|
||||
|
||||
context->req->engine_handler = raw_dynamic_load_all_read;
|
||||
ocf_engine_push_req_front(context->req, true);
|
||||
ocf_queue_push_req_front(context->req, true);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -501,7 +501,7 @@ void raw_dynamic_load_all(ocf_cache_t cache, struct ocf_metadata_raw *raw,
|
||||
context->req->priv = context;
|
||||
context->req->engine_handler = raw_dynamic_load_all_read;
|
||||
|
||||
ocf_engine_push_req_front(context->req, true);
|
||||
ocf_queue_push_req_front(context->req, true);
|
||||
return;
|
||||
|
||||
err_req:
|
||||
|
Reference in New Issue
Block a user