File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -3041,11 +3041,12 @@ static void rcu_torture_barrier_cbf(struct rcu_head *rcu)
3041
3041
}
3042
3042
3043
3043
/* IPI handler to get callback posted on desired CPU, if online. */
3044
- static void rcu_torture_barrier1cb (void * rcu_void )
3044
+ static int rcu_torture_barrier1cb (void * rcu_void )
3045
3045
{
3046
3046
struct rcu_head * rhp = rcu_void ;
3047
3047
3048
3048
cur_ops -> call (rhp , rcu_torture_barrier_cbf );
3049
+ return 0 ;
3049
3050
}
3050
3051
3051
3052
/* kthread function to register callbacks used to test RCU barriers. */
@@ -3071,11 +3072,9 @@ static int rcu_torture_barrier_cbs(void *arg)
3071
3072
* The above smp_load_acquire() ensures barrier_phase load
3072
3073
* is ordered before the following ->call().
3073
3074
*/
3074
- if (smp_call_function_single (myid , rcu_torture_barrier1cb ,
3075
- & rcu , 1 )) {
3076
- // IPI failed, so use direct call from current CPU.
3075
+ if (smp_call_on_cpu (myid , rcu_torture_barrier1cb , & rcu , 1 ))
3077
3076
cur_ops -> call (& rcu , rcu_torture_barrier_cbf );
3078
- }
3077
+
3079
3078
if (atomic_dec_and_test (& barrier_cbs_count ))
3080
3079
wake_up (& barrier_wq );
3081
3080
} while (!torture_must_stop ());
You can’t perform that action at this time.
0 commit comments