module/gpt: use correct ch when queueing IO
Was using the ch provided by submit(), needs to use base ch Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I4ac4ec6d4e1810ede622d3625b9c9e74b690ed8c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/819 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
223108d16e
commit
017f875132
@ -185,6 +185,7 @@ vbdev_gpt_resubmit_request(void *arg)
|
||||
static void
|
||||
vbdev_gpt_queue_io(struct gpt_io *io)
|
||||
{
|
||||
struct gpt_channel *ch = spdk_io_channel_get_ctx(io->ch);
|
||||
int rc;
|
||||
|
||||
io->bdev_io_wait.bdev = io->bdev_io->bdev;
|
||||
@ -192,7 +193,7 @@ vbdev_gpt_queue_io(struct gpt_io *io)
|
||||
io->bdev_io_wait.cb_arg = io;
|
||||
|
||||
rc = spdk_bdev_queue_io_wait(io->bdev_io->bdev,
|
||||
io->ch, &io->bdev_io_wait);
|
||||
ch->part_ch.base_ch, &io->bdev_io_wait);
|
||||
if (rc != 0) {
|
||||
SPDK_ERRLOG("Queue io failed in vbdev_gpt_queue_io, rc=%d.\n", rc);
|
||||
spdk_bdev_io_complete(io->bdev_io, SPDK_BDEV_IO_STATUS_FAILED);
|
||||
|
Loading…
Reference in New Issue
Block a user