• Paul E. McKenney's avatar
    rcutorture: Make rcu_torture_barrier_cbs() post from corresponding CPU · 50d4b629
    Paul E. McKenney authored
    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>
    50d4b629
rcutorture.c 75.5 KB