]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rcu: Consolidate the RCU update functions invoked by sync.c
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 11 Jul 2018 21:42:53 +0000 (14:42 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 9 Nov 2018 05:43:20 +0000 (21:43 -0800)
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>
kernel/rcu/sync.c

index 3f943efcf61c1e3c31373799f475c80967ae3fd0..9d570b1892b0df7552550c54fe9f281993f50ca9 100644 (file)
@@ -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)
        },
 };