rcu: Simplify rcu_report_dead() call to rcu_report_exp_rdp()
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 29 Jul 2021 22:35:21 +0000 (15:35 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 13 Sep 2021 23:32:46 +0000 (16:32 -0700)
commit768f5d50e6ad88363291f96a2e230442b8d633bc
treefdf72cad0ea0561849f0fb9d3072001140be98f7
parent2caebefb00f03b5ba13d44aa6cc3723759b43822
rcu: Simplify rcu_report_dead() call to rcu_report_exp_rdp()

Currently, rcu_report_dead() disables preemption across its call to
rcu_report_exp_rdp(), but this is pointless because interrupts are
already disabled by the caller.  In addition, rcu_report_dead() computes
the address of the outgoing CPU's rcu_data structure, which is also
pointless because this address is already present in local variable rdp.
This commit therefore drops the preemption disabling and passes rdp
to rcu_report_exp_rdp().

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