lib/nvme: remove qpair from ctrl list in connect fail path
This is an oversight that can cause issues with looping through the list if we end up allocating the same qpair twice. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: I513ea35398f4b724366c21be144531fbfbdb4347 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3835 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
ed7848f2df
commit
ce83fc2aff
@ -457,6 +457,7 @@ spdk_nvme_ctrlr_alloc_io_qpair(struct spdk_nvme_ctrlr *ctrlr,
|
||||
rc = spdk_nvme_ctrlr_connect_io_qpair(ctrlr, qpair);
|
||||
if (rc != 0) {
|
||||
SPDK_ERRLOG("nvme_transport_ctrlr_connect_io_qpair() failed\n");
|
||||
TAILQ_REMOVE(&ctrlr->active_io_qpairs, qpair, tailq);
|
||||
nvme_transport_ctrlr_delete_io_qpair(ctrlr, qpair);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user