]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rcu: Remove redundant BH disabling in TINY_RCU
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 2 Mar 2024 01:16:53 +0000 (17:16 -0800)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Mon, 15 Apr 2024 09:29:48 +0000 (11:29 +0200)
The TINY_RCU rcu_process_callbacks() function is only ever invoked from
a softirq handler, which means that BH is already disabled.  This commit
therefore removes the redundant local_bh_disable() and local_bh_ennable()
from this function.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/tiny.c

index 705c0d16850aa28db4e0ec7d26d10204e1ed24ce..4470af926a34fe418c68787eebabc00e7741e474 100644 (file)
@@ -130,9 +130,7 @@ static __latent_entropy void rcu_process_callbacks(struct softirq_action *unused
                next = list->next;
                prefetch(next);
                debug_rcu_head_unqueue(list);
-               local_bh_disable();
                rcu_reclaim_tiny(list);
-               local_bh_enable();
                list = next;
        }
 }