]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rcutorture: Use finer-grained timeouts for rcu_torture_writer() polling
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 21 Oct 2024 14:07:47 +0000 (07:07 -0700)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Sat, 14 Dec 2024 16:02:28 +0000 (17:02 +0100)
commit7b6c1648bb6e041b3f2284b7f602283adc852bb7
tree682ce45e4428f4254c36bf5d6d0738298d5198ac
parent579a05da40a4980870a13d30cd0532f77aa15b8b
rcutorture: Use finer-grained timeouts for rcu_torture_writer() polling

The rcu_torture_writer() polling currently uses timeouts ranging from
zero to 16 milliseconds to wait for the polled grace period to end.
This works, but it would be better to have a higher probability of
exercising races with the code that cleans up after a grace period.
This commit therefore switches from these millisecond-scale timeouts
to timeouts ranging from zero to 128 microseconds, and with a full
microsecond's worth of timeout fuzz.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/rcutorture.c