• Paul E. McKenney's avatar
    rcutorture: Emulate userspace sojourn during call_rcu() floods · bd1bfc51
    Paul E. McKenney authored
    During an actual call_rcu() flood, there would be frequent trips to
    userspace (in-kernel call_rcu() floods must be otherwise housebroken).
    Userspace execution allows a great many things to interrupt execution,
    and rcutorture needs to also allow such interruptions.  This commit
    therefore causes call_rcu() floods to occasionally invoke schedule(),
    thus preventing spurious rcutorture failures due to other parts of the
    kernel becoming irate at the call_rcu() flood events.
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
    bd1bfc51
rcutorture.c 72.9 KB