efbab14933
The NVMe bdev module will have two similar features, multipath and failover when it supports multipath. Take a case that we add two different trids with the same name by the bdev_nvme_attach_controller RPC as an example. The failover adds secondary trid to an existing nvme_ctrlr. The multipath feature creates another nvme_ctrlr and adds it to the same nvme_bdev_ctrlr which has an existing nvme_ctrlr. We want to use bdev_nvme_attach_controller for both failover and multipath. To do it cleanly, separate callback to spdk_nvme_connect_async() between creating ctrlr and setting failover. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Id9bc175af6201cdd74e12d4903fc81afe4f91189 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9225 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@gmail.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
include | ||
lib | ||
.gitignore | ||
Makefile | ||
unittest.sh |