diff options
author | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-06 19:06:51 -0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.ibm.com> | 2018-11-27 09:21:42 -0800 |
commit | 51959d85f32dde9041655936eef206cc3323dc12 (patch) | |
tree | 330c06454c273b2fa41ca58385e7df775fd1f476 /kernel | |
parent | ae8b7ce7647bc5c56a9a9fc32b03e1cd0ae49629 (diff) | |
download | linux-stable-51959d85f32dde9041655936eef206cc3323dc12.tar.gz linux-stable-51959d85f32dde9041655936eef206cc3323dc12.tar.bz2 linux-stable-51959d85f32dde9041655936eef206cc3323dc12.zip |
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: Paul 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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/locking/lockdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index 1efada2dd9dd..ef27f98714c0 100644 --- a/kernel/locking/lockdep.c +++ b/kernel/locking/lockdep.c @@ -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. */ - synchronize_sched(); + synchronize_rcu(); /* * XXX at this point we could return the resources to the pool; |