Merge pull request #23 from robertbaldyga/add-missing-io-puts

Add missing io puts
This commit is contained in:
Robert Bałdyga 2018-12-20 14:49:51 +01:00 committed by GitHub
commit 5778d74c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
metadata_io_write_i_asynch_end(request, error);
ocf_io_put(io);
}
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;
cntx->error = err;
env_completion_complete(&cntx->complete);
ocf_io_put(io);
}
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;
callback(req, error);
ocf_io_put(io);
}
void ocf_submit_cache_reqs(struct ocf_cache *cache,