Always use async queue kick in management pipeline

Management pipelines tend to consist of multiple asynchronous steps.
Allowing synchronous queue kick results in massive call stacks (e.g.
almost 500 functions deep in case of cache stop). Since async kick
is required anyway, it seems reasonable to switch to async kick
in pipeline implementation.

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2021-09-17 12:39:09 +02:00
parent 8108736c14
commit 48bc6c2f6b

View File

@ -120,12 +120,12 @@ void *ocf_pipeline_get_priv(ocf_pipeline_t pipeline)
void ocf_pipeline_next(ocf_pipeline_t pipeline) void ocf_pipeline_next(ocf_pipeline_t pipeline)
{ {
ocf_engine_push_req_front(pipeline->req, true); ocf_engine_push_req_front(pipeline->req, false);
} }
void ocf_pipeline_finish(ocf_pipeline_t pipeline, int error) void ocf_pipeline_finish(ocf_pipeline_t pipeline, int error)
{ {
pipeline->finish = true; pipeline->finish = true;
pipeline->error = error; pipeline->error = error;
ocf_engine_push_req_front(pipeline->req, true); ocf_engine_push_req_front(pipeline->req, false);
} }