2ee6ab36f9
Previously bdev_nvme_reset() returned -EBUSY if ctrlr is being destructed and returned -EAGAIN if ctrlr is being reset. These did not match what spdk_nvme_ctrlr_reset() returned. Reset operation will be more important than current when multipath is supported and reset operation is made asynchronous. Hence change bdev_nvme_reset() to follow spdk_nvme_ctrlr_reset(). bdev_nvme_reset() returns -ENXIO if ctrlr is being destructed and returns -EBUSY if ctrlr is being reset. Additionally change the return value of bdev_nvme_failover() accordingly. After the change bdev_nvme_failover() returns -ENXIO if being destructed and returns -EBUSY if ctrlr is being reset. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ie2c6f8601050b1043d83de9cf01490751784e4e5 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8859 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Konrad Sztyber <konrad.sztyber@gmail.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
accel | ||
bdev | ||
blob | ||
blobfs | ||
env_dpdk | ||
event | ||
scheduler | ||
sock | ||
Makefile |