Skip to content

Commit 3dbd865

Browse files
paulmckrcuurezki
authored andcommitted
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 <paulmck@kernel.org> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent 1b4e9fd commit 3dbd865

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

kernel/rcu/tiny.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ static __latent_entropy void rcu_process_callbacks(struct softirq_action *unused
130130
next = list->next;
131131
prefetch(next);
132132
debug_rcu_head_unqueue(list);
133-
local_bh_disable();
134133
rcu_reclaim_tiny(list);
135-
local_bh_enable();
136134
list = next;
137135
}
138136
}

0 commit comments

Comments
 (0)