diff --git a/modules/cas_cache/volume/vol_block_dev_bottom.c b/modules/cas_cache/volume/vol_block_dev_bottom.c index d24dd60..6258e50 100644 --- a/modules/cas_cache/volume/vol_block_dev_bottom.c +++ b/modules/cas_cache/volume/vol_block_dev_bottom.c @@ -165,9 +165,6 @@ static void cas_bd_io_end(struct ocf_io *io, int error) /* Send completion to caller */ io->end(io, bdio->error); - - /* Free allocated structures */ - ocf_io_put(io); } /* @@ -213,9 +210,6 @@ static void block_dev_submit_flush(struct ocf_io *io) /* Prevent races of completing IO */ atomic_set(&blkio->rq_remaning, 1); - /* Increase IO reference counter for FLUSH IO */ - ocf_io_get(io); - if (q == NULL) { /* No queue, error */ blkio->error = -EINVAL; @@ -262,9 +256,6 @@ void block_dev_submit_discard(struct ocf_io *io) /* Prevent races of completing IO */ atomic_set(&blkio->rq_remaning, 1); - /* Increase IO reference counter for FLUSH IO */ - ocf_io_get(io); - if (!q) { /* No queue, error */ blkio->error = -ENXIO; @@ -385,9 +376,6 @@ static void block_dev_submit_io(struct ocf_io *io) CAS_DEBUG_PARAM("Address = %llu, bytes = %u\n", bdio->addr, bdio->bytes); - /* Increase IO reference */ - ocf_io_get(io); - /* Prevent races of completing IO */ atomic_set(&bdio->rq_remaning, 1);