Commit a03ded65 authored by Liu Xiaodong's avatar Liu Xiaodong Committed by Tomasz Zawadzki
Browse files

test/intr: correct without-thread situation



Change-Id: I31eef70855f9968371e1f9f5ef278de66a83d552
Signed-off-by: default avatarLiu Xiaodong <xiaodong.liu@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8887


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarZiye Yang <ziye.yang@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
parent 7ff8688c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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