Skip to content
Commit 8c7ec02e authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcutorture: Consolidate rcu_torture_boost() timing and statistics



This commit consolidates two loops in rcu_torture_boost(), one of which
counts the number of boost-test episodes and the other of which computes
the start time of the next episode, into one loop that does both with but
a single acquisition of boost_mutex.  This means that the count of the
number of boost-test episodes is incremented after an episode completes
rather than before it starts, but it also avoids the over-counting that
was possible previously.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 7b9dad7a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment