Skip to content

rcu/nocb: RCU nocb bypass-list cleanup patches

Joel Fernandes lkml rcu 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rcu/nocb: Extract nocb_defer_wakeup_cancel() helperkernel/rcu/tree_nocb.h+11 -80 replies
2/3rcu/nocb: Consolidate rcu_nocb_cpu_offload/deoffload functionskernel/rcu/tree_nocb.h+38 -350 replies
3/3rcu/nocb: Extract nocb_bypass_needs_flush() to reduce duplicationkernel/rcu/tree_nocb.h+37 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] rcu/nocb: RCU nocb bypass-list cleanup patches

The RCU nocb logic is complex, with duplicate code patterns scattered across multiple functions. This series is a small refactor to make the bypass-list code easier to follow. In the future, I am planning to do more refactors of this code.

This series is based on top of the earlier -next series I had sent:
https://lore.kernel.org/all/[email protected]/

There is no urgency with this particular series. It is OK for v7.1 as well.

Testing:
I ran rcutorture on this series plus the earlier -next submissions for 16 hours on all RCU NOCB configs (TREE01, TREE05, TREE08). All scenarios passed.

The git tree with all patches can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git (tag: rcu-nocb-cleanup-v1-20260103)

Joel Fernandes (3):
rcu/nocb: Extract nocb_defer_wakeup_cancel() helper rcu/nocb: Consolidate rcu_nocb_cpu_offload/deoffload functions rcu/nocb: Extract nocb_bypass_needs_flush() to reduce duplication

 kernel/rcu/tree_nocb.h | 143 +++++++++++++++++++++++++----------------
 1 file changed, 86 insertions(+), 57 deletions(-)

base-commit: a02abdb7c34af5364e6243276b8ba1dc50972ffe --
2.34.1