lib/nvme: when failing a controller, disconnect the admin qpair.
This is really useful when the intent of failing the qpair is to do something like fail over to a different controller structure and we want back completions for everything outstanding from the admin queue. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: Icbfdf855ddb1a380da7b9036ab5da6faab862e00 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1815 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
6189c0ceb7
commit
300583e2e1
@ -757,6 +757,7 @@ nvme_ctrlr_fail(struct spdk_nvme_ctrlr *ctrlr, bool hot_remove)
|
||||
ctrlr->is_removed = true;
|
||||
}
|
||||
ctrlr->is_failed = true;
|
||||
nvme_transport_ctrlr_disconnect_qpair(ctrlr, ctrlr->adminq);
|
||||
SPDK_ERRLOG("ctrlr %s in failed state.\n", ctrlr->trid.traddr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user