lib/nvme: report rdma_connect errors up the stack.
This will allow applications to discern specific connect behavior and make choices relative to it. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: I46182c285367ceb8a72511defe4508b3592b4572 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3095 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
8421f83973
commit
203ed4f673
@ -1087,7 +1087,7 @@ nvme_rdma_connect(struct nvme_rdma_qpair *rqpair)
|
|||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
} else if (ret) {
|
} else if (ret) {
|
||||||
SPDK_ERRLOG("RDMA connect error %d\n", ret);
|
SPDK_ERRLOG("RDMA connect error %d\n", ret);
|
||||||
return -1;
|
return ret;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -1376,7 +1376,7 @@ nvme_rdma_ctrlr_connect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qp
|
|||||||
} while (rc == -EAGAIN && retry_count < NVME_RDMA_STALE_CONN_RETRY_MAX);
|
} while (rc == -EAGAIN && retry_count < NVME_RDMA_STALE_CONN_RETRY_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc == -EAGAIN ? -1 : rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user