module/crypto: fix use of wrong ch param in queueing IO
Vbdev module should use the base channel, not the vbdev channel. fixes #1195 Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: I7e426a2fc1735213c986ba55dc17623bc3ce948e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/791 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.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
b69c95b67f
commit
d8aa3ab6be
@ -1027,7 +1027,7 @@ vbdev_crypto_queue_io(struct spdk_bdev_io *bdev_io)
|
||||
io_ctx->bdev_io_wait.cb_fn = vbdev_crypto_resubmit_io;
|
||||
io_ctx->bdev_io_wait.cb_arg = bdev_io;
|
||||
|
||||
rc = spdk_bdev_queue_io_wait(bdev_io->bdev, io_ctx->ch, &io_ctx->bdev_io_wait);
|
||||
rc = spdk_bdev_queue_io_wait(bdev_io->bdev, io_ctx->crypto_ch->base_ch, &io_ctx->bdev_io_wait);
|
||||
if (rc != 0) {
|
||||
SPDK_ERRLOG("Queue io failed in vbdev_crypto_queue_io, rc=%d.\n", rc);
|
||||
spdk_bdev_io_complete(bdev_io, SPDK_BDEV_IO_STATUS_FAILED);
|
||||
|
Loading…
Reference in New Issue
Block a user