main: Replace rcu_barrier_sched() with rcu_barrier()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Wed, 7 Nov 2018 02:58:01 +0000 (18:58 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 27 Nov 2018 17:21:41 +0000 (09:21 -0800)
Now that all RCU flavors have been consolidated, rcu_barrier_sched()
is but a synonym for rcu_barrier().  This commit therefore replaces
the former with the latter.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: <linux-mm@kvack.org>
init/main.c

index ee147103ba1bae45798b06ba2705a917bc5cc8d6..a4548633024387459d68db391457eadef2ea7bc5 100644 (file)
@@ -1046,12 +1046,12 @@ static void mark_readonly(void)
 {
        if (rodata_enabled) {
                /*
-                * load_module() results in W+X mappings, which are cleaned up
-                * with call_rcu_sched().  Let's make sure that queued work is
+                * load_module() results in W+X mappings, which are cleaned
+                * up with call_rcu().  Let's make sure that queued work is
                 * flushed so that we don't hit false positives looking for
                 * insecure pages which are W+X.
                 */
-               rcu_barrier_sched();
+               rcu_barrier();
                mark_rodata_ro();
                rodata_test();
        } else