Skip to content

Commit da9366c

Browse files
committed
scftorture: Account for weight_resched when checking for all zeroes
The "all zero weights makes no sense" error is emitted even when scftorture.weight_resched is non-zero because it was left out of the enclosing "if" condition. This commit adds it in. Fixes: 1ac78b4 ("scftorture: Add an alternative IPI vector") Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 2b1388f commit da9366c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/scftorture.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ static int __init scf_torture_init(void)
583583
if (weight_all_wait == -1)
584584
weight_all_wait1 = 0;
585585
}
586-
if (weight_single1 == 0 && weight_single_rpc1 == 0 && weight_single_wait1 == 0 &&
587-
weight_many1 == 0 && weight_many_wait1 == 0 &&
586+
if (weight_resched1 == 0 && weight_single1 == 0 && weight_single_rpc1 == 0 &&
587+
weight_single_wait1 == 0 && weight_many1 == 0 && weight_many_wait1 == 0 &&
588588
weight_all1 == 0 && weight_all_wait1 == 0) {
589589
VERBOSE_SCFTORTOUT_ERRSTRING("all zero weights makes no sense");
590590
firsterr = -EINVAL;

0 commit comments

Comments
 (0)