]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
rcu: Inline RCU task stall-warning helper functions
authorPaul E. McKenney <paulmck@linux.ibm.com>
Sat, 12 Jan 2019 04:36:45 +0000 (20:36 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 26 Mar 2019 21:40:13 +0000 (14:40 -0700)
commit21d0d79ab051bf9facb9960a30e58b93a31c75a5
tree23a5525d518fb387fb4819f6e0deae7ba84c542b
parent32255d51b6ed00de2b88970ceea8db0ec3bae6f8
rcu: Inline RCU task stall-warning helper functions

The rcu_print_detail_task_stall(), rcu_print_task_stall_begin(), and
rcu_print_task_stall_end() functions were defined to allow long-gone
Kconfig options to provide an abbreviated RCU CPU stall warning printout.
This commit saves a few lines of code by inlining them into their sole
callers.

While in the area, a useless call of rcu_print_detail_task_stall_rnp()
on the root rcu_node structure was eliminated.  If there is only one
rcu_node structure, its tasks get printed twice, but if there are more,
the root rcu_node structure is guaranteed to have an empty list of blocked
tasks, hence the uselessness.  (Long ago, root rcu_node structures with
non-empty ->blkd_tasks lists could happen, but no longer.)

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree.h
kernel/rcu/tree_stall.h