On 4/18/2025 12:09 PM, Joel Fernandes wrote: > From: "Paul E. McKenney" <paul...@kernel.org> > > This commit creates counters in the rcu_torture_one_read_state_updown > structure that check for a call to ->up_read() that lacks a matching > call to ->down_read(). > > While in the area, add end-of-run cleanup code that prevents calls to > rcu_torture_updown_hrt() from happening after the test has moved on. Yes, > the srcu_barrier() at the end of the test will wait for them, but this > could result in confusing states, statistics, and diagnostic information. > So explicitly wait for them before we get to the end-of-test output. > > [ paulmck: Apply kernel test robot feedback. ] Fyi, I just updated this commit message: [ joel: Apply Boqun's fix for counter increment ordering. ] Hope it looks good now [1], thank you Boqun for the fix! - Joel [1] https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git/commit/?h=rcu/for-next&id=fc9e01b94032d2b017925a5f1437532e021bba5d
- [PATCH 00/14] RCU torture changes for v6.16 Joel Fernandes
- [PATCH 01/14] rcutorture: Make srcu_lockdep.sh check... Joel Fernandes
- [PATCH 02/14] rcutorture: Make srcu_lockdep.sh check... Joel Fernandes
- [PATCH 04/14] rcutorture: Make torture.sh --do-rt us... Joel Fernandes
- [PATCH 03/14] rcutorture: Split out beginning and en... Joel Fernandes
- [PATCH 06/14] rcutorture: Pull rcu_torture_updown() ... Joel Fernandes
- [PATCH 05/14] rcutorture: Add tests for SRCU up/down... Joel Fernandes
- [PATCH 08/14] rcutorture: Complain if an ->up_rea... Joel Fernandes
- [PATCH 07/14] rcutorture: Comment invocations of tic... Joel Fernandes
- [PATCH 09/14] rcutorture: Check for ->up_read() w... Joel Fernandes
- Re: [PATCH 09/14] rcutorture: Check for ->up_... Joel Fernandes
- [PATCH 11/14] torture: Add --do-{,no-}normal to tort... Joel Fernandes
- [PATCH 10/14] checkpatch: Deprecate srcu_read_lock_l... Joel Fernandes
- [PATCH 12/14] torture: Add testing of RCU's Rust bin... Joel Fernandes
- Re: [PATCH 12/14] torture: Add testing of RCU's ... Miguel Ojeda
- Re: [PATCH 12/14] torture: Add testing of RC... Paul E. McKenney
- Re: [PATCH 12/14] torture: Add testing o... Miguel Ojeda
- Re: [PATCH 12/14] torture: Add test... Paul E. McKenney
- Re: [12/14] torture: Add testin... Joel Fernandes
- Re: [12/14] torture: Add te... Paul E. McKenney
- Re: [12/14] torture: Add te... Joel Fernandes