From: Olivier Dion Date: Fri, 14 Jul 2023 19:51:34 +0000 (-0400) Subject: Fix: tests/rcutorture: Put thread offline on busy-wait X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c92c99041415698b57ca123e58a19b05189ae398;p=urcu.git Fix: tests/rcutorture: Put thread offline on busy-wait Change-Id: Ic12b7df5d70b474f1e87f0710d3a55e5f906c020 Signed-off-by: Olivier Dion Signed-off-by: Mathieu Desnoyers --- 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: