bdev/nvme: Inline bdev_nvme_io_complete() into bdev_nvme_reset_io_complete()
Even when I/O retry is supported, reset will not be retried. However, bdev_nvme_io_complete() will process I/O retry. Hence inline bdev_nvme_io_complete() into bdev_nvme_reset_io_complete() to exclude reset from I/O retry. The result of reset is success or failure, so omit the -ENOMEM case. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I667e74cbbac4a13cefb6896f898476ba48bcd0fa Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9687 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
d278711cff
commit
d7c7fbcda7
@ -1096,8 +1096,15 @@ static void
|
||||
bdev_nvme_reset_io_complete(void *cb_arg, int rc)
|
||||
{
|
||||
struct nvme_bdev_io *bio = cb_arg;
|
||||
enum spdk_bdev_io_status io_status;
|
||||
|
||||
bdev_nvme_io_complete(bio, rc);
|
||||
if (rc == 0) {
|
||||
io_status = SPDK_BDEV_IO_STATUS_SUCCESS;
|
||||
} else {
|
||||
io_status = SPDK_BDEV_IO_STATUS_FAILED;
|
||||
}
|
||||
|
||||
spdk_bdev_io_complete(spdk_bdev_io_from_ctx(bio), io_status);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user