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

Paul E. McKenney
2019-10-05T16:53:00Z

On Thu, Oct 03, 2019 at 04:14:58PM +0200, Frederic Weisbecker wrote:
> On Wed, Oct 02, 2019 at 06:38:55PM -0700, paulmck@kernel.org wrote:
> > From: "Paul E. McKenney" <paulmck@linux.ibm.com>
> >
> > 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@linux.ibm.com>
>
> You can also remove all the IS_ENABLED here.

Again, good catch and fixed, thank you!

Thanx, Paul