Skip to content

Commit

Permalink
main: Replace rcu_barrier_sched() with rcu_barrier()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul E. McKenney committed Nov 27, 2018
1 parent 7440172 commit ba18031
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba18031

Please sign in to comment.