Skip to content

Commit d3ff389

Browse files
paulmckPaul E. McKenney
authored andcommitted
rcu: Consolidate the RCU update functions invoked by sync.c
This commit retains all the various gp_ops[] entries, but makes their update functions all be synchronize_rcu(), call_rcu() and rcu_barrier(). The read-side checks remain consistent with the various RCU flavors, which still exist on the read side. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org>
1 parent 309ba85 commit d3ff389

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎kernel/rcu/sync.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ static const struct {
4444
__INIT_HELD(rcu_read_lock_held)
4545
},
4646
[RCU_SCHED_SYNC] = {
47-
.sync = synchronize_sched,
48-
.call = call_rcu_sched,
49-
.wait = rcu_barrier_sched,
47+
.sync = synchronize_rcu,
48+
.call = call_rcu,
49+
.wait = rcu_barrier,
5050
__INIT_HELD(rcu_read_lock_sched_held)
5151
},
5252
[RCU_BH_SYNC] = {
53-
.sync = synchronize_rcu_bh,
54-
.call = call_rcu_bh,
55-
.wait = rcu_barrier_bh,
53+
.sync = synchronize_rcu,
54+
.call = call_rcu,
55+
.wait = rcu_barrier,
5656
__INIT_HELD(rcu_read_lock_bh_held)
5757
},
5858
};

0 commit comments

Comments
 (0)