Skip to content

Commit 29fc33f

Browse files
bvanasscheingomolnar
authored andcommitted
locking/lockdep: Update two outdated comments
synchronize_sched() has been removed recently. Update the comments that refer to synchronize_sched(). Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Waiman Long <longman@redhat.com> Cc: Will Deacon <will.deacon@arm.com> Cc: johannes.berg@intel.com Cc: tj@kernel.org Fixes: 51959d8 ("lockdep: Replace synchronize_sched() with synchronize_rcu()") # v5.0-rc1 Link: https://lkml.kernel.org/r/20190214230058.196511-11-bvanassche@acm.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent cdc84d7 commit 29fc33f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎kernel/locking/lockdep.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4188,9 +4188,9 @@ static void __lockdep_free_key_range(void *start, unsigned long size)
41884188
* Used in module.c to remove lock classes from memory that is going to be
41894189
* freed; and possibly re-used by other modules.
41904190
*
4191-
* We will have had one sync_sched() before getting here, so we're guaranteed
4192-
* nobody will look up these exact classes -- they're properly dead but still
4193-
* allocated.
4191+
* We will have had one synchronize_rcu() before getting here, so we're
4192+
* guaranteed nobody will look up these exact classes -- they're properly dead
4193+
* but still allocated.
41944194
*/
41954195
void lockdep_free_key_range(void *start, unsigned long size)
41964196
{
@@ -4209,8 +4209,6 @@ void lockdep_free_key_range(void *start, unsigned long size)
42094209
/*
42104210
* Wait for any possible iterators from look_up_lock_class() to pass
42114211
* before continuing to free the memory they refer to.
4212-
*
4213-
* sync_sched() is sufficient because the read-side is IRQ disable.
42144212
*/
42154213
synchronize_rcu();
42164214

0 commit comments

Comments
 (0)