Spdk/module/bdev/nvme
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
..
bdev_nvme_cuse_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
bdev_nvme_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
bdev_nvme.c bdev/nvme: Add failover trid to an existing ctrlr in the attach callback 2020-12-02 10:19:32 +00:00
bdev_nvme.h bdev/nvme: Make bdev_nvme_add_trid() static function 2020-09-30 07:25:54 +00:00
bdev_ocssd_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
bdev_ocssd.c bdev/nvme: Use nvme_ns for nvme_bdev_ns and ns for spdk_nvme_ns 2020-12-02 10:19:32 +00:00
bdev_ocssd.h bdev/nvme: Use nvme_ns for nvme_bdev_ns and ns for spdk_nvme_ns 2020-12-02 10:19:32 +00:00
common.c bdev/nvme: Get the connected trid from NVMe driver in dump_info_json() 2020-11-16 12:26:35 +00:00
common.h bdev/nvme: Use nvme_ns for nvme_bdev_ns and ns for spdk_nvme_ns 2020-12-02 10:19:32 +00:00
Makefile mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
nvme_rpc.c module/nvme: Fix warning about scanbuild. 2020-10-27 08:42:32 +00:00
vbdev_opal_rpc.c lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
vbdev_opal.c bdev_nvme/opal: Use spdk_bdev_part_base_construct_ext() to pass bdev_name 2020-10-16 08:14:34 +00:00
vbdev_opal.h module/bdev_nvme: remove spdk prefix from static/internal functions. 2020-05-15 07:58:03 +00:00