Fix: tests/rcutorture: Put thread offline on busy-wait
authorOlivier Dion <odion@efficios.com>
Fri, 14 Jul 2023 19:51:34 +0000 (15:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 Jul 2023 19:54:31 +0000 (15:54 -0400)
Change-Id: Ic12b7df5d70b474f1e87f0710d3a55e5f906c020
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/regression/rcutorture.h

index 93fdf0cf373c6623dafec968b64257bb96a24bd6..f495cbd12259709721212a17b84a7e7744be905a 100644 (file)
@@ -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:
This page took 0.026387 seconds and 4 git commands to generate.