Skip to content
Commit 50d4b629 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Make rcu_torture_barrier_cbs() post from corresponding CPU



Currently, rcu_torture_barrier_cbs() posts callbacks from whatever CPU
it is running on, which means that all these kthreads might well be
posting from the same CPU, which would drastically reduce the effectiveness
of this test.  This commit therefore uses IPIs to make the callbacks be
posted from the corresponding CPU (given by local variable myid).

If the IPI fails (which can happen if the target CPU is offline or does
not exist at all), the callback is posted on whatever CPU is currently
running.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 12af6603
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment