Re: [PATCH tip/core/rcu 04/12] rcutorture: Force on tick for readers and callback flooders

From: Frederic Weisbecker
Date: Thu Oct 03 2019 - 10:15:03 EST


On Wed, Oct 02, 2019 at 06:38:55PM -0700, paulmck@xxxxxxxxxx wrote:
> From: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>

You can also remove all the IS_ENABLED here.

Thanks!