Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51959d85 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

lockdep: Replace synchronize_sched() with synchronize_rcu()



Now that synchronize_rcu() waits for preempt-disable regions of code
as well as RCU read-side critical sections, synchronize_sched() can be
replaced by synchronize_rcu().  This commit therefore makes this change.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
parent ae8b7ce7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4195,7 +4195,7 @@ void lockdep_free_key_range(void *start, unsigned long size)
	 *
	 *
	 * sync_sched() is sufficient because the read-side is IRQ disable.
	 * sync_sched() is sufficient because the read-side is IRQ disable.
	 */
	 */
	synchronize_sched();
	synchronize_rcu();


	/*
	/*
	 * XXX at this point we could return the resources to the pool;
	 * XXX at this point we could return the resources to the pool;