summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/sync.c
diff options
context:
space:
mode:
authorPaul E. McKenney2018-07-11 23:42:53 +0200
committerPaul E. McKenney2018-11-09 06:43:20 +0100
commitd3ff3891b2edba63a7dee9023306bb66878fc3d8 (patch)
tree92c00d1e7b5b44759eb2c611640cbcd86a1c16bd /kernel/rcu/sync.c
parentrcu: Eliminate synchronize_rcu_mult() (diff)
downloadkernel-qcow2-linux-d3ff3891b2edba63a7dee9023306bb66878fc3d8.tar.gz
kernel-qcow2-linux-d3ff3891b2edba63a7dee9023306bb66878fc3d8.tar.xz
kernel-qcow2-linux-d3ff3891b2edba63a7dee9023306bb66878fc3d8.zip
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>
Diffstat (limited to 'kernel/rcu/sync.c')
-rw-r--r--kernel/rcu/sync.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/rcu/sync.c b/kernel/rcu/sync.c
index 3f943efcf61c..9d570b1892b0 100644
--- a/kernel/rcu/sync.c
+++ b/kernel/rcu/sync.c
@@ -44,15 +44,15 @@ static const struct {
__INIT_HELD(rcu_read_lock_held)
},
[RCU_SCHED_SYNC] = {
- .sync = synchronize_sched,
- .call = call_rcu_sched,
- .wait = rcu_barrier_sched,
+ .sync = synchronize_rcu,
+ .call = call_rcu,
+ .wait = rcu_barrier,
__INIT_HELD(rcu_read_lock_sched_held)
},
[RCU_BH_SYNC] = {
- .sync = synchronize_rcu_bh,
- .call = call_rcu_bh,
- .wait = rcu_barrier_bh,
+ .sync = synchronize_rcu,
+ .call = call_rcu,
+ .wait = rcu_barrier,
__INIT_HELD(rcu_read_lock_bh_held)
},
};