lkml.org 
[lkml]   [2018]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 21/41] lockdep: Replace synchronize_sched() with synchronize_rcu()
    Date
    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>
    ---
    kernel/locking/lockdep.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    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;
    --
    2.17.1
    \
     
     \ /
      Last update: 2018-11-11 20:47    [W:4.072 / U:0.236 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site