OSDN Git Service

rcutorture: Force on tick for readers and callback flooders
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 28 Jul 2019 19:00:48 +0000 (12:00 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 5 Oct 2019 17:46:04 +0000 (10:46 -0700)
commitd38e6dc6ed0dfef8d323354031a1ee1a7cfdedc1
treebccce24309a5ef53479699a55b14ccb31cc98a36
parent6a949b7af82db7eb1e52caaed122eab1cf63acee
rcutorture: Force on tick for readers and callback flooders

Readers and callback flooders in the rcutorture stress-test suite run for
extended time periods by design.  They do take pains to relinquish the
CPU from time to time, but in some cases this relies on the scheduler
being active, which in turn relies on the scheduler-clock interrupt
firing from time to time.

This commit therefore forces scheduling-clock interrupts within
these loops.  While in the area, this commit also prevents
rcu_torture_reader()'s occasional timed sleeps from delaying shutdown.

[ paulmck: Apply Joel Fernandes TICK_DEP_MASK_RCU->TICK_DEP_BIT_RCU fix. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c