Skip to content

Commit c3d0258

Browse files
committed
scftorture: Count reschedule IPIs
Currently, only those IPIs that invoke scftorture's scf_handler() IPI handler function are counted. This means that runs exercising only scftorture.weight_resched will look like they have made no forward progress, resulting in "GP HANG" complaints from the rcutorture scripting. This commit therefore increments the scf_invoked_count per-CPU counter immediately after calling resched_cpu(). Fixes: 1ac78b4 ("scftorture: Add an alternative IPI vector") Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent da9366c commit c3d0258

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kernel/scftorture.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_ra
341341
cpu = torture_random(trsp) % nr_cpu_ids;
342342
scfp->n_resched++;
343343
resched_cpu(cpu);
344+
this_cpu_inc(scf_invoked_count);
344345
}
345346
break;
346347
case SCF_PRIM_SINGLE:

0 commit comments

Comments
 (0)