numam-spdk/module
Shuhei Matsumoto db436f2dc0 bdev/nvme: Refactor namespace comparison in add_trid()
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>
2020-12-02 10:19:32 +00:00
..
accel lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
bdev bdev/nvme: Refactor namespace comparison in add_trid() 2020-12-02 10:19:32 +00:00
blob bdev: extend interface with get module ctx 2020-12-01 10:20:56 +00:00
blobfs module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
env_dpdk log: remove internal log.h header 2020-10-15 08:23:39 +00:00
event lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
sock sock: create spdk_sock_prep_reqs function. 2020-11-27 09:22:30 +00:00
Makefile global: rename copy to accel 2020-02-18 08:05:34 +00:00