• Paul E. McKenney's avatar
    rcutorture: Add test of holding scheduler locks across rcu_read_unlock() · 52b1fc3f
    Paul E. McKenney authored
    Now that it should be safe to hold scheduler locks across
    rcu_read_unlock(), even in cases where the corresponding RCU read-side
    critical section might have been preempted and boosted, the commit adds
    a test of this capability to rcutorture.  This has been tested on current
    mainline (which can deadlock in this situation), and lockdep duly reported
    the expected deadlock.  On -rcu, lockdep is silent, thus far, anyway.
    
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Juri Lelli <juri.lelli@redhat.com>
    Cc: Vincent Guittot <vincent.guittot@linaro.org>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    52b1fc3f
rcutorture.c 76.2 KB