Skip to content

Commit 915e8a4

Browse files
Alexander Gordeevpaulmck
authored andcommitted
rcu: Remove fastpath from __rcu_process_callbacks()
The standard code path accommodates a condition when no RCU callbacks are ready to invoke. Since size of the code is a priority for tiny RCU, remove the fast path. Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
1 parent 27153ac commit 915e8a4

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎kernel/rcu/tiny.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,6 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp)
168168
unsigned long flags;
169169
RCU_TRACE(int cb_count = 0);
170170

171-
/* If no RCU callbacks ready to invoke, just return. */
172-
if (&rcp->rcucblist == rcp->donetail) {
173-
RCU_TRACE(trace_rcu_batch_start(rcp->name, 0, 0, -1));
174-
RCU_TRACE(trace_rcu_batch_end(rcp->name, 0,
175-
!!ACCESS_ONCE(rcp->rcucblist),
176-
need_resched(),
177-
is_idle_task(current),
178-
false));
179-
return;
180-
}
181-
182171
/* Move the ready-to-invoke callbacks to a local list. */
183172
local_irq_save(flags);
184173
RCU_TRACE(trace_rcu_batch_start(rcp->name, 0, rcp->qlen, -1));

0 commit comments

Comments
 (0)