From c92c99041415698b57ca123e58a19b05189ae398 Mon Sep 17 00:00:00 2001 From: Olivier Dion Date: Fri, 14 Jul 2023 15:51:34 -0400 Subject: [PATCH] Fix: tests/rcutorture: Put thread offline on busy-wait Change-Id: Ic12b7df5d70b474f1e87f0710d3a55e5f906c020 Signed-off-by: Olivier Dion Signed-off-by: Mathieu Desnoyers --- tests/regression/rcutorture.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/regression/rcutorture.h b/tests/regression/rcutorture.h index 93fdf0c..f495cbd 100644 --- a/tests/regression/rcutorture.h +++ b/tests/regression/rcutorture.h @@ -405,7 +405,10 @@ void *rcu_update_stress_test(void *arg __attribute__((unused))) call_rcu(&rh, rcu_update_stress_test_rcu); + /* Offline for busy-wait. */ + put_thread_offline(); urcu_adaptative_busy_wait(&wait); + put_thread_online(); break; } case WRITER_STATE_POLL_RCU: -- 2.39.5