]> asedeno.scripts.mit.edu Git - linux.git/commit
rcutorture: Emulate userspace sojourn during call_rcu() floods
authorPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 22 Jun 2019 21:35:59 +0000 (14:35 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Thu, 1 Aug 2019 21:30:22 +0000 (14:30 -0700)
commitbd1bfc51a36f334270b886db6d8467e55fe294ca
tree5c27c53514cc90778142b15aa53d07fbb05787b1
parentf4e8352928587ef8772df3d269a328efa609daaa
rcutorture: Emulate userspace sojourn during call_rcu() floods

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: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/rcutorture.c