Re: [PATCH] rcu: Print correct in print_one_rcu_pending

From: Paul E. McKenney
Date: Mon Dec 10 2018 - 13:03:25 EST


On Mon, Dec 10, 2018 at 11:35:56PM +0800, Liu Song wrote:
> My kernel version is 4.4.166 and I found incorrect print info
> from print_one_rcu_pending. Adjust the description to make the
> information correct.
>
> Signed-off-by: Liu Song <liu.song11@xxxxxxxxxx>

This does not apply to mainline because debugfs tracing has been removed.

Please do feel free to send it to -stable, though I have no idea what the
-stable folks do about fixes to things that are no longer in mainline.
In that case, it is clear that the rule about waiting until it gets to
mainline isn't appropriate. ;-)

Thanx, Paul

> ---
> kernel/rcu/tree_trace.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/rcu/tree_trace.c b/kernel/rcu/tree_trace.c
> index ef7093cc9b5c..5d0eddc9dc63 100644
> --- a/kernel/rcu/tree_trace.c
> +++ b/kernel/rcu/tree_trace.c
> @@ -365,7 +365,7 @@ static void print_one_rcu_pending(struct seq_file *m, struct rcu_data *rdp)
> rdp->n_rp_report_qs,
> rdp->n_rp_cb_ready,
> rdp->n_rp_cpu_needs_gp);
> - seq_printf(m, "gpc=%ld gps=%ld nn=%ld ndw%ld\n",
> + seq_printf(m, "gpc=%ld gps=%ld ndw=%ld nn=%ld\n",
> rdp->n_rp_gp_completed,
> rdp->n_rp_gp_started,
> rdp->n_rp_nocb_defer_wakeup,
> --
> 2.19.1
>