rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread()
authorZqiang <qiang1.zhang@intel.com>
Fri, 29 Apr 2022 12:42:22 +0000 (20:42 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 19 Jul 2022 18:43:39 +0000 (11:43 -0700)
commit5103850654fdc651f0a7076ac753b958f018bb85
tree89adc36d81d75bd2ce82d4b22b97465bdc914a47
parentb37a667c62421b34e96b05613457b9fb0ed66ea1
rcu: Add nocb_cb_kthread check to rcu_is_callbacks_kthread()

Callbacks are invoked in RCU kthreads when calbacks are offloaded
(rcu_nocbs boot parameter) or when RCU's softirq handler has been
offloaded to rcuc kthreads (use_softirq==0).  The current code allows
for the rcu_nocbs case but not the use_softirq case.  This commit adds
support for the use_softirq case.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Zqiang <qiang1.zhang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
kernel/rcu/tree.c
kernel/rcu/tree.h
kernel/rcu/tree_plugin.h