Skip to content

Commit df83fff

Browse files
committed
rcu-tasks: Make grace-period-age message human-readable
This commit adds a few words to the informative message that appears every ten seconds in RCU Tasks and RCU Tasks Trace grace periods. This message currently reads as follows: rcu_tasks_wait_gp: rcu_tasks grace period 1046 is 10088 jiffies old. After this change, it provides additional context, instead reading as follows: rcu_tasks_wait_gp: rcu_tasks grace period number 1046 (since boot) is 10088 jiffies old. Reported-by: Alexei Starovoitov <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent fdbdb86 commit df83fff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/rcu/tasks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ static void rcu_tasks_wait_gp(struct rcu_tasks *rtp)
728728
if (rtsi > 0 && !reported && time_after(j, lastinfo + rtsi)) {
729729
lastinfo = j;
730730
rtsi = rtsi * rcu_task_stall_info_mult;
731-
pr_info("%s: %s grace period %lu is %lu jiffies old.\n",
731+
pr_info("%s: %s grace period number %lu (since boot) is %lu jiffies old.\n",
732732
__func__, rtp->kname, rtp->tasks_gp_seq, j - rtp->gp_start);
733733
}
734734
}

0 commit comments

Comments
 (0)