diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2021-08-04 02:42:25 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-09-14 01:36:15 +0200 |
commit | fda84866b1e68ab409074e7fcf1a7db800615445 (patch) | |
tree | 6b3d3288fa180fb5873e1c726cbb8c300324593b /kernel/rcu | |
parent | Linux 5.15-rc1 (diff) | |
download | linux-fda84866b1e68ab409074e7fcf1a7db800615445.tar.xz linux-fda84866b1e68ab409074e7fcf1a7db800615445.zip |
rcutorture: Suppressing read-exit testing is not an error
Currently, specifying the rcutorture.read_exit_burst=0 kernel boot
parameter will result in a -EINVAL exit code that will stop the rcutorture
test run before it has fully initialized. This commit therefore uses a
zero exit code in that case, thus allowing rcutorture.read_exit_burst=0
to complete normally.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/rcutorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index ab4215266ebe..59254fa15cc6 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -2741,7 +2741,7 @@ static int rcu_torture_read_exit(void *unused) static int rcu_torture_read_exit_init(void) { if (read_exit_burst <= 0) - return -EINVAL; + return 0; init_waitqueue_head(&read_exit_wq); read_exit_child_stop = false; read_exit_child_stopped = false; |