]> git.baikalelectronics.ru Git - kernel.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)
commit86c4840ae00e975736643d6399a62d1d1e207338
tree5c27c53514cc90778142b15aa53d07fbb05787b1
parentd3c8352d7db833a414f39889caf18fd8019a44d2
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