From 3e32462142fa495da7985a262111ac3ff2fd4894 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 8 Nov 2016 13:45:05 -0700 Subject: [PATCH] bdev/rbd: remove unused blockdev_rbd_io::ch It was written but never read (and the I/O channel is already stored in the generic spdk_bdev_io). Change-Id: Id33392e9d3940b2c1439e9fed2553aa091ecedf8 Signed-off-by: Daniel Verkamp --- lib/bdev/rbd/blockdev_rbd.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/bdev/rbd/blockdev_rbd.c b/lib/bdev/rbd/blockdev_rbd.c index 6563f87b51..5979f97dc9 100644 --- a/lib/bdev/rbd/blockdev_rbd.c +++ b/lib/bdev/rbd/blockdev_rbd.c @@ -60,7 +60,6 @@ static int blockdev_rbd_count = 0; struct blockdev_rbd_io { size_t len; rbd_completion_t completion; - struct blockdev_rbd_io_channel *ch; }; struct blockdev_rbd { @@ -230,7 +229,6 @@ blockdev_rbd_readv(struct blockdev_rbd *disk, struct spdk_io_channel *ch, if (iovcnt != 1 || iov->iov_len != len) return -1; - cmd->ch = rbdio_ch; cmd->len = len; return blockdev_rbd_start_aio(rbdio_ch->image, cmd, iov->iov_base, offset, len); @@ -246,8 +244,6 @@ blockdev_rbd_writev(struct blockdev_rbd *disk, struct spdk_io_channel *ch, if ((iovcnt != 1) || (iov->iov_len != len)) return -1; - cmd->ch = (void *)rbdio_ch; - return blockdev_rbd_start_aio(rbdio_ch->image, cmd, (void *)iov->iov_base, offset, len); } @@ -257,8 +253,6 @@ blockdev_rbd_flush(struct blockdev_rbd *disk, struct spdk_io_channel *ch, { struct blockdev_rbd_io_channel *rbdio_ch = spdk_io_channel_get_ctx(ch); - cmd->ch = (void *)rbdio_ch; - return blockdev_rbd_start_aio(rbdio_ch->image, cmd, NULL, offset, nbytes); }