From a03ded655e68f09944719486c1c2929a620d4d21 Mon Sep 17 00:00:00 2001 From: Liu Xiaodong Date: Thu, 22 Jul 2021 08:58:14 -0400 Subject: [PATCH] test/intr: correct without-thread situation Change-Id: I31eef70855f9968371e1f9f5ef278de66a83d552 Signed-off-by: Liu Xiaodong Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8887 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Reviewed-by: Changpeng Liu Reviewed-by: Ziye Yang Reviewed-by: Aleksey Marchuk --- test/interrupt/reactor_set_interrupt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/interrupt/reactor_set_interrupt.sh b/test/interrupt/reactor_set_interrupt.sh index e1a4f8892..7181c41ca 100755 --- a/test/interrupt/reactor_set_interrupt.sh +++ b/test/interrupt/reactor_set_interrupt.sh @@ -27,7 +27,7 @@ function reactor_set_intr_mode() { reactor_is_idle $spdk_pid $i done - if [ "$without_thd"x = x ]; then + if [ "$without_thd"x != x ]; then # Schedule all spdk_threads to reactor 1 for i in ${thd0_ids[*]}; do $rpc_py thread_set_cpumask -i $i -m $r1_mask @@ -46,7 +46,7 @@ function reactor_set_intr_mode() { # Set reactor 2 back to intr mode $rpc_py --plugin interrupt_plugin reactor_set_interrupt_mode 2 - if [ "$without_thd"x = x ]; then + if [ "$without_thd"x != x ]; then # Schedule spdk_threads in thd2_ids back to reactor 2 for i in ${thd2_ids[*]}; do $rpc_py thread_set_cpumask -i $i -m $r2_mask @@ -57,7 +57,7 @@ function reactor_set_intr_mode() { # Set reactor 0 back to intr mode $rpc_py --plugin interrupt_plugin reactor_set_interrupt_mode 0 - if [ "$without_thd"x = x ]; then + if [ "$without_thd"x != x ]; then # Schedule spdk_threads in thd2_ids back to reactor 0 for i in ${thd0_ids[*]}; do $rpc_py thread_set_cpumask -i $i -m $r0_mask