]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rcutorture: Allow a negative value for nfakewriters
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Thu, 27 Feb 2025 13:16:11 +0000 (14:16 +0100)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 5 Mar 2025 02:44:29 +0000 (18:44 -0800)
commit8d67c1558a71475e638fee09e588e12834043069
tree25e85df007e1f895767cf781090e1c1efff9b093
parent6ea9a1781c70a8be1fcdc49134fc1bf4baba8bca
rcutorture: Allow a negative value for nfakewriters

Currently "nfakewriters" parameter can be set to any value but
there is no possibility to adjust it automatically based on how
many CPUs a system has where a test is run on.

To address this, if the "nfakewriters" is set to negative it will
be adjusted to num_online_cpus() during torture initialization.

Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Link: https://lore.kernel.org/r/20250227131613.52683-1-urezki@gmail.com
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
kernel/rcu/rcutorture.c