Loading
bdev/nvme: Consolidate io_path availability check of io_path_is_current()
io_path availability check was missing and error occurred. To avoid similar error in future, consolidate io_path availability check to the head of nvme_io_path_is_current(). About active/active case, checking if ana_state is optimal is more intuitive than checking if ana_state is not non-optimal. Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Change-Id: I2dcd10e04341962a8eddd84f5194bebd8bd6679b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23404 Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>