Skip to content

Commit d2e7f55

Browse files
Frederic WeisbeckerNeeraj Upadhyay
authored andcommitted
rcu/nocb: Remove halfway (de-)offloading handling from bypass
Bypass enqueue can't happen anymore in the middle of (de-)offloading since this sort of transition now only applies to offline CPUs. The related safety check can therefore be removed. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Paul E. McKenney <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]>
1 parent 4e26ce4 commit d2e7f55

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kernel/rcu/tree_nocb.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,6 @@ static bool rcu_nocb_try_bypass(struct rcu_data *rdp, struct rcu_head *rhp,
409409
return false;
410410
}
411411

412-
// In the process of (de-)offloading: no bypassing, but
413-
// locking.
414-
if (!rcu_segcblist_completely_offloaded(&rdp->cblist)) {
415-
rcu_nocb_lock(rdp);
416-
*was_alldone = !rcu_segcblist_pend_cbs(&rdp->cblist);
417-
return false; /* Not offloaded, no bypassing. */
418-
}
419-
420412
// Don't use ->nocb_bypass during early boot.
421413
if (rcu_scheduler_active != RCU_SCHEDULER_RUNNING) {
422414
rcu_nocb_lock(rdp);

0 commit comments

Comments
 (0)