Loading
bdev/nvme: Get ctrlr via io_channel_iter_get_io_device() at reset process
nvme_ctrlr will be registered as io_device even when multipath is supported. Hence while spdk_for_each_channel() is executed in reset processing, we can get nvme_ctrlr both spdk_io_channel_iter_get_ctx() and spdk_io_channel_iter_get_io_device(). This duplication is not necessary. Use spdk_io_channel_iter_get_io_device() and pass NULL to the context parameter of spdk_for_each_channel() for clarification. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ifdbd0af4274081c4be7ab0735eb8bf9ae10e3493 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8588 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>