Commit c2550778 authored by Jim Harris's avatar Jim Harris Committed by Konrad Sztyber
Browse files

test/nvme/hotplug: adjust sleep per loop on number of SSDs



The amount of time required by the hotplug app to
re-attach SSDs after insertion is dependent on the number
of SSDs per loop.

This patch helps fix issue #2201.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I63a00c33ad194eb07fdac9a7ef05c08d1cb81d10
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18078


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarSlawomir Ptak <slawomir.ptak@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
parent 0de6ed9d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ remove_attach_helper() {
	local hotplug_events=$1
	local hotplug_wait=$2
	local use_bdev=$3
	local nvme_count=${#nvmes[@]}
	local dev

	# We need to make sure we wait long enough for hotplug to initialize the devices
@@ -65,7 +66,7 @@ remove_attach_helper() {
		done

		# Wait now for hotplug to reattach to the devices
		sleep "$hotplug_wait"
		sleep "$((hotplug_wait * nvme_count))"
	done
}