From f8a07503851c8169ad11dde6d484e96739716e09 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Fri, 20 Dec 2019 10:05:06 -0700 Subject: [PATCH] nvme/rdma: Increase timeout when waiting for CM_EVENTS In some real data center deployments, 100ms is not enough. Increase the timeout to 1 second. Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478638 (master) (cherry picked from commit 3d06a83fa497fb3d40744b011e4cda5405389277) Change-Id: I8195a1c1e987b7eff2d8541509f79381be32ed4b Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478724 Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Tested-by: SPDK CI Jenkins Community-CI: SPDK CI Jenkins --- lib/nvme/nvme_rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvme/nvme_rdma.c b/lib/nvme/nvme_rdma.c index 8ad3ffd0f1..1145f2eccb 100644 --- a/lib/nvme/nvme_rdma.c +++ b/lib/nvme/nvme_rdma.c @@ -70,7 +70,7 @@ #define NVME_RDMA_NUM_CM_EVENTS 256 /* CM event processing timeout */ -#define NVME_RDMA_QPAIR_CM_EVENT_TIMEOUT_US 100000 +#define NVME_RDMA_QPAIR_CM_EVENT_TIMEOUT_US 1000000 struct spdk_nvmf_cmd { struct spdk_nvme_cmd cmd;