Add missing io puts

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2018-12-20 14:35:26 +01:00
parent 4a41d76216
commit 71f1682215
2 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,8 @@ static void metadata_io_write_i_asynch_cmpl(struct ocf_io *io, int error)
struct metadata_io_request *request = io->priv1; struct metadata_io_request *request = io->priv1;
metadata_io_write_i_asynch_end(request, error); metadata_io_write_i_asynch_end(request, error);
ocf_io_put(io);
} }
static int ocf_restart_meta_io(struct ocf_request *req) static int ocf_restart_meta_io(struct ocf_request *req)

View File

@ -32,6 +32,8 @@ static void _ocf_obj_flush_end(struct ocf_io *io, int err)
struct ocf_submit_io_wait_context *cntx = io->priv1; struct ocf_submit_io_wait_context *cntx = io->priv1;
cntx->error = err; cntx->error = err;
env_completion_complete(&cntx->complete); env_completion_complete(&cntx->complete);
ocf_io_put(io);
} }
int ocf_submit_obj_flush_wait(ocf_data_obj_t obj) int ocf_submit_obj_flush_wait(ocf_data_obj_t obj)
@ -205,6 +207,8 @@ static void ocf_submit_obj_req_cmpl(struct ocf_io *io, int error)
ocf_req_end_t callback = io->priv2; ocf_req_end_t callback = io->priv2;
callback(req, error); callback(req, error);
ocf_io_put(io);
} }
void ocf_submit_cache_reqs(struct ocf_cache *cache, void ocf_submit_cache_reqs(struct ocf_cache *cache,