rcu: Disable interrupts directly in rcu_gp_init()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 8 May 2024 17:28:43 +0000 (10:28 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 18 Jun 2024 17:00:48 +0000 (10:00 -0700)
commit51cace13729f8954e5414bea9dbfaf80ebd41a69
tree3d9c4d87c157d54db3ae0d0775d2f81d3e7cbb2c
parent6f948568fdc66429c9f70e2cecde0664655cc870
rcu: Disable interrupts directly in rcu_gp_init()

Interrupts are enabled in rcu_gp_init(), so this commit switches from
local_irq_save() and local_irq_restore() to local_irq_disable() and
local_irq_enable().

Link: https://lore.kernel.org/all/febb13ab-a4bb-48b4-8e97-7e9f7749e6da@moroto.mountain/
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c