Skip to content

Commit fda8486

Browse files
committed
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 <[email protected]>
1 parent 6880fa6 commit fda8486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/rcutorture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2741,7 +2741,7 @@ static int rcu_torture_read_exit(void *unused)
27412741
static int rcu_torture_read_exit_init(void)
27422742
{
27432743
if (read_exit_burst <= 0)
2744-
return -EINVAL;
2744+
return 0;
27452745
init_waitqueue_head(&read_exit_wq);
27462746
read_exit_child_stop = false;
27472747
read_exit_child_stopped = false;

0 commit comments

Comments
 (0)