+21
−11
Loading
In other places, nvme_ns->populated has been used to check an namespace is active for an existing nvme_bdev_ctrlr. We do not need to call spdk_nvme_ctrlr_is_active_ns() again. Follow it in this patch. Besides, factor out the namespace comparison into a small helper function bdev_nvme_compare_ns(). It will be used to check if two controllers have the common namespace for ANA multipath. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I8aad2f58aae1fd45ca0dd981dded1c406f215ac0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5359 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>