From dacd8ec827fd98d3a8e67a922d7ea128ba61f2f7 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Mon, 9 May 2022 11:46:23 +0200 Subject: [PATCH] test/nvmf: increase waitforserial() initial wait time Increase waitforserial() function initial wait time. When testing with 5.16.X kernel version 2 seconds were not enough and issuing a "disconnect" immediatelly after "connect" caused keepalive timeout. Fixes #2467 Signed-off-by: Karol Latecki Change-Id: Ib913be35b2383daf5f5037e258bbdd2477810921 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12587 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Reviewed-by: Pawel Piatek Reviewed-by: Konrad Sztyber Reviewed-by: Kamil Godzwon Reviewed-by: Krzysztof Karas Reviewed-by: Tomasz Zawadzki --- test/common/autotest_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/autotest_common.sh b/test/common/autotest_common.sh index 1111da40d..f6647484f 100755 --- a/test/common/autotest_common.sh +++ b/test/common/autotest_common.sh @@ -1046,11 +1046,11 @@ function waitforserial() { nvme_device_counter=$2 fi - # Wait initially for min 2s to make sure all devices are ready for use. It seems + # Wait initially for min 4s to make sure all devices are ready for use. It seems # that we may be racing with a kernel where in some cases immediate disconnect may # leave dangling subsystem with no-op block devices which can't be used nor removed # (unless kernel is rebooted) and which start to negatively affect all the tests. - sleep 2 + sleep 4 while ((i++ <= 15)); do nvme_devices=$(lsblk -l -o NAME,SERIAL | grep -c "$1") ((nvme_devices == nvme_device_counter)) && return 0