Re: [PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-27 Thread Paul E. McKenney
On Thu, Mar 27, 2025 at 05:08:35PM +, Joel Fernandes wrote: > > > > On Mar 27, 2025, at 12:48 PM, Paul E. McKenney wrote: > > > > On Thu, Mar 27, 2025 at 12:22:12PM -0400, Joel Fernandes wrote: > >> Paul, > >> > If rtorsu_hrt timer is still in timer_queue, invoke hrtimer_cancel() wil

Re: [PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-27 Thread Joel Fernandes
> On Mar 27, 2025, at 12:48 PM, Paul E. McKenney wrote: > > On Thu, Mar 27, 2025 at 12:22:12PM -0400, Joel Fernandes wrote: >> Paul, >> If rtorsu_hrt timer is still in timer_queue, invoke hrtimer_cancel() will remove it from timerqueue and directly return, so the rcu_torture_u

Re: [PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-27 Thread Paul E. McKenney
On Thu, Mar 27, 2025 at 12:22:12PM -0400, Joel Fernandes wrote: > Paul, > > >> If rtorsu_hrt timer is still in timer_queue, invoke hrtimer_cancel() will > >> remove it from timerqueue and directly return, so the > >> rcu_torture_updown_hrt() > >> will not be executed and the rtorsup->rtorsu_inuse

Re: [PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-27 Thread Joel Fernandes
Paul, >> If rtorsu_hrt timer is still in timer_queue, invoke hrtimer_cancel() will >> remove it from timerqueue and directly return, so the >> rcu_torture_updown_hrt() >> will not be executed and the rtorsup->rtorsu_inuse cannot be set false. >> >> How about modifying it as follows: >> >> diff --

Re: [PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-27 Thread Paul E. McKenney
On Thu, Mar 27, 2025 at 11:26:01AM +0800, Z qiang wrote: > > > > This commit adds a new rcutorture.n_up_down kernel boot parameter > > that specifies the number of outstanding SRCU up/down readers, which > > begin in kthread context and end in an hrtimer handler. There is a new > > kthread ("rcu_t

Re: [PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-26 Thread Z qiang
> > This commit adds a new rcutorture.n_up_down kernel boot parameter > that specifies the number of outstanding SRCU up/down readers, which > begin in kthread context and end in an hrtimer handler. There is a new > kthread ("rcu_torture_updown") that scans an per-reader array looking > for elemen

[PATCH 5/9] rcutorture: Add tests for SRCU up/down reader primitives

2025-03-10 Thread Paul E. McKenney
This commit adds a new rcutorture.n_up_down kernel boot parameter that specifies the number of outstanding SRCU up/down readers, which begin in kthread context and end in an hrtimer handler. There is a new kthread ("rcu_torture_updown") that scans an per-reader array looking for elements whose rea