Skip to content

Commit cd6d17b

Browse files
Neeraj UpadhyayPaul E. McKenney
authored andcommitted
rcu: Dump specified number of blocked tasks
The dump_blkd_tasks() function dumps at most 10 blocked tasks, ignoring the value of the ncheck parameter. This commit therefore substitutes the value of ncheck for the hard-coded value of 10. Because all callers currently pass 10 as the number, this patch does not change behavior, but it is clearly an accident waiting to happen. Signed-off-by: Neeraj Upadhyay <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent a188339 commit cd6d17b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tree_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ dump_blkd_tasks(struct rcu_node *rnp, int ncheck)
760760
i = 0;
761761
list_for_each(lhp, &rnp->blkd_tasks) {
762762
pr_cont(" %p", lhp);
763-
if (++i >= 10)
763+
if (++i >= ncheck)
764764
break;
765765
}
766766
pr_cont("\n");

0 commit comments

Comments
 (0)