nvme/nvme_tcp: Check for timeout when socket connection fails
Fixes #2614 Signed-off-by: LiadOz <liadozil@gmail.com> Change-Id: Ie4942d52b1af42ed859338fc59f3e29dcd59e68c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13891 Community-CI: Mellanox Build Bot 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> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Dong Yi <dongx.yi@intel.com>
This commit is contained in:
parent
a6b7e1839d
commit
5c3360ce1f
@ -1765,6 +1765,9 @@ nvme_tcp_qpair_process_completions(struct spdk_nvme_qpair *qpair, uint32_t max_c
|
|||||||
if (qpair->poll_group == NULL) {
|
if (qpair->poll_group == NULL) {
|
||||||
rc = spdk_sock_flush(tqpair->sock);
|
rc = spdk_sock_flush(tqpair->sock);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
if (spdk_unlikely(tqpair->qpair.ctrlr->timeout_enabled)) {
|
||||||
|
nvme_tcp_qpair_check_timeout(qpair);
|
||||||
|
}
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user