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 @@ -3044,11 +3044,12 @@ static void rcu_torture_barrier_cbf(struct rcu_head *rcu)
3044
3044
}
3045
3045
3046
3046
/* IPI handler to get callback posted on desired CPU, if online. */
3047
- static void rcu_torture_barrier1cb (void * rcu_void )
3047
+ static int rcu_torture_barrier1cb (void * rcu_void )
3048
3048
{
3049
3049
struct rcu_head * rhp = rcu_void ;
3050
3050
3051
3051
cur_ops -> call (rhp , rcu_torture_barrier_cbf );
3052
+ return 0 ;
3052
3053
}
3053
3054
3054
3055
/* kthread function to register callbacks used to test RCU barriers. */
@@ -3074,11 +3075,9 @@ static int rcu_torture_barrier_cbs(void *arg)
3074
3075
* The above smp_load_acquire() ensures barrier_phase load
3075
3076
* is ordered before the following ->call().
3076
3077
*/
3077
- if (smp_call_function_single (myid , rcu_torture_barrier1cb ,
3078
- & rcu , 1 )) {
3079
- // IPI failed, so use direct call from current CPU.
3078
+ if (smp_call_on_cpu (myid , rcu_torture_barrier1cb , & rcu , 1 ))
3080
3079
cur_ops -> call (& rcu , rcu_torture_barrier_cbf );
3081
- }
3080
+
3082
3081
if (atomic_dec_and_test (& barrier_cbs_count ))
3083
3082
wake_up (& barrier_wq );
3084
3083
} while (!torture_must_stop ());
You can’t perform that action at this time.
0 commit comments