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

From: Paul E. McKenney
Date: Sat Oct 05 2019 - 12:53:00 EST


On Thu, Oct 03, 2019 at 04:14:58PM +0200, Frederic Weisbecker wrote:
> 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.

Again, good catch and fixed, thank you!

Thanx, Paul