From: Paul E. McKenney Date: Sat, 2 Mar 2024 01:16:53 +0000 (-0800) Subject: rcu: Remove redundant BH disabling in TINY_RCU X-Git-Tag: v6.10-rc1~234^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dbd8652f87b81fccb766bddb985ef46a1502f04;p=thirdparty%2Fkernel%2Flinux.git rcu: Remove redundant BH disabling in TINY_RCU 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 Signed-off-by: Uladzislau Rezki (Sony) --- diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index 705c0d16850aa..4470af926a34f 100644 --- a/kernel/rcu/tiny.c +++ b/kernel/rcu/tiny.c @@ -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; } }