Spdk/module/bdev
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
..
aio lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
compress lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
crypto lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
delay lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
error lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
ftl lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
gpt module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
iscsi lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
lvol lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
malloc module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
null module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
nvme bdev/nvme: Refactor namespace comparison in add_trid() 2020-12-02 10:19:32 +00:00
ocf lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
passthru lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
pmem lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
raid module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
rbd lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
split lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
uring lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
virtio virtio: add transitional virtio device support 2020-11-20 11:00:53 +00:00
zone_block module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
Makefile bdev: move bdev_rpc library contents 2020-09-25 11:43:42 +00:00