Spdk/module/bdev
Shuhei Matsumoto f85b860d27 bdev/nvme: Add failover trid to an existing ctrlr in the attach callback
Previously, we separated two cases, creating an new nvme_bdev_ctrlr
and adding an new path to an existing nvme_bdev_ctrlr as early as
possible.

However, we can merge creating an new connection between these two
cases. In this patch, connect_attach_cb() calls bdev_nvme_add_trid()
and then calls spdk_nvme_detach() if the nvme_bdev_ctrlr whose name is
ctx->base_name already exists.

This will simplify ANA multipath feature.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I2eec92dbf96e979690a1087c5c4fc306a29f15de
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5329
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: Add failover trid to an existing ctrlr in the attach callback 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