• Paul E. McKenney's avatar
    rcutorture: Emphasize testing of single reader protection type · bf1bef50
    Paul E. McKenney authored
    For RCU implementations supporting multiple types of reader protection,
    rcutorture currently randomly selects the combinations of types of
    protection for each phase of each reader.  The problem with this,
    for example, given the four kinds of protection for RCU-sched
    (local_irq_disable(), local_bh_disable(), preempt_disable(), and
    rcu_read_lock_sched()), the reader will be protected by a single
    mechanism only 25% of the time.  We really heavier testing of single
    read-side mechanisms.
    
    This commit therefore uses only a single mechanism about 60% of the time,
    half of the time explicitly and one-eighth of the time by chance.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    bf1bef50
rcutorture.c 59.3 KB