Commit 21b3ff1b authored by Krzysztof Karas's avatar Krzysztof Karas Committed by Konrad Sztyber
Browse files

cpu_locks.sh: sleep after checking for core locks



If core locks still exist after disabling them,
sleep one second and recheck for their existence.

This change aims to help debug #2920.

Change-Id: I35c46feb7b58acee22ab0ed51bc5efe2e714c65e
Signed-off-by: default avatarKrzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16979


Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent ac8ab85b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -26,7 +26,11 @@ locks_exist() {

no_locks() {
	local lock_files=(/var/tmp/spdk_cpu_lock*)
	if ((${#lock_files[@]} != 0)); then
		sleep 1
		lock_files=(/var/tmp/spdk_cpu_lock*)
		((${#lock_files[@]} == 0))
	fi
}

check_remaining_locks() {