]> git.baikalelectronics.ru Git - kernel.git/commit
rcu/nocb: Fix dump_tree hierarchy print always active
authorStefan Reiter <stefan@pimaker.at>
Fri, 4 Oct 2019 19:49:10 +0000 (19:49 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Dec 2019 20:37:50 +0000 (12:37 -0800)
commit8ae042bc4d3177103fad294cb991bf29ffe65996
treecc276190c76e894afd2d8eb284a8909c180f6e98
parent7855fcc07be326322b44982a21760fd9bd8e2b92
rcu/nocb: Fix dump_tree hierarchy print always active

Commit def78193da43 ("rcu/nocb: Print gp/cb kthread hierarchy if
dump_tree") added print statements to rcu_organize_nocb_kthreads for
debugging, but incorrectly guarded them, causing the function to always
spew out its message.

This patch fixes it by guarding both pr_alert statements with dump_tree,
while also changing the second pr_alert to a pr_cont, to print the
hierarchy in a single line (assuming that's how it was supposed to
work).

Fixes: def78193da43 ("rcu/nocb: Print gp/cb kthread hierarchy if dump_tree")
Signed-off-by: Stefan Reiter <stefan@pimaker.at>
[ paulmck: Make single-nocbs-CPU GP kthreads look less erroneous. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_plugin.h