rcu: Refactor rcu_barrier() empty-list handling
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 11 Dec 2021 00:25:20 +0000 (16:25 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 8 Feb 2022 18:12:28 +0000 (10:12 -0800)
commit0cabb47af3cfaeb6007ba3868379bbd4daee64cc
treedac582dd53d5dc618eb2d00d742c4c0222a7f05a
parent82980b1622d97017053c6792382469d7dc26a486
rcu: Refactor rcu_barrier() empty-list handling

This commit saves a few lines by checking first for an empty callback
list.  If the callback list is empty, then that CPU is taken care of,
regardless of its online or nocb state.  Also simplify tracing accordingly
and fold a few lines together.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/trace/events/rcu.h
kernel/rcu/tree.c