Skip to content

rcu: Make rcu_core() safe in PREEMPT_RT with NOCB + a few other fixes v3

Frederic Weisbecker lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10rcu/nocb: Prepare state machine for a new stepinclude/linux/rcu_segcblist.h kernel/rcu/rcu_segcblist.c kernel/rcu/rcu_segcblist.h +2 more+50 -310 replies
2/10rcu/nocb: Invoke rcu_core() at the start of deoffloadinginclude/linux/rcu_segcblist.h kernel/rcu/rcu_segcblist.c kernel/rcu/tree.c +1 more+42 -40 replies
3/10rcu/nocb: Make rcu_core() callbacks acceleration preempt-safekernel/rcu/tree.c+3 -20 replies
4/10rcu/nocb: Make rcu_core() callbacks acceleration (de-)offloading safekernel/rcu/tree.c+16 -20 replies
5/10rcu/nocb: Check a stable offloaded state to manipulate qlen_last_fqs_checkkernel/rcu/tree.c+1 -10 replies
6/10rcu/nocb: Use appropriate rcu_nocb_lock_irqsave()kernel/rcu/tree.c+3 -50 replies
7/10rcu/nocb: Limit number of softirq callbacks only on softirqkernel/rcu/tree.c+2 -30 replies
8/10rcu: Fix callbacks processing time limit retaining cond_resched()kernel/rcu/tree.c+15 -100 replies
9/10rcu: Apply callbacks processing time limit only on softirqkernel/rcu/tree.c+12 -130 replies
10/10rcu/nocb: Don't invoke local rcu core on callback overload from nocb kthreadkernel/rcu/tree.c+5 -50 replies

Reviews trailers per patch

5 of 10 patches have a Reviewed-by or Acked-by.

PatchValentin SchneiderSebastian Andrzej SiewiorThomas Gleixner
1/10R-b T-b T-b
2/10T-b T-b
3/10Reported-and-tested-by R-b T-b
4/10Reported-and-tested-by T-b
5/10Reported-and-tested-by T-b Original-patch-by
6/10R-b T-b T-b
7/10T-b T-b
8/10R-b T-b T-b
9/10R-b T-b T-b
10/10T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/10] rcu: Make rcu_core() safe in PREEMPT_RT with NOCB + a few other fixes v3

Changes since v2:

_ Drop first patch (got applied by Paul)

_ Fix unwanted rcu_core() hanging around after setting a CPU as nocb
on boot. This resulted in terrible rcu_barrier() misordering. I simply forgot to clear SEGCBLIST_RCU_CORE on nocb CPUs on boot.

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git

	rcu/rt-v3

HEAD: 7610a2ba5eaca8caf977ed45bad251ac693feefa

Thanks,
Frederic
---

Frederic Weisbecker (9):
rcu/nocb: Prepare state machine for a new step
rcu/nocb: Invoke rcu_core() at the start of deoffloading rcu/nocb: Make rcu_core() callbacks acceleration (de-)offloading safe rcu/nocb: Check a stable offloaded state to manipulate qlen_last_fqs_check rcu/nocb: Use appropriate rcu_nocb_lock_irqsave()
rcu/nocb: Limit number of softirq callbacks only on softirq
rcu: Fix callbacks processing time limit retaining cond_resched()
rcu: Apply callbacks processing time limit only on softirq rcu/nocb: Don't invoke local rcu core on callback overload from nocb kthread

Thomas Gleixner (1):
rcu/nocb: Make rcu_core() callbacks acceleration preempt-safe

 include/linux/rcu_segcblist.h | 51 ++++++++++++++++++-------
 kernel/rcu/rcu_segcblist.c    | 10 ++---
 kernel/rcu/rcu_segcblist.h    | 12 +++---
 kernel/rcu/tree.c             | 87 +++++++++++++++++++++++++++++--------------
 kernel/rcu/tree_nocb.h        | 33 ++++++++++++----
 5 files changed, 133 insertions(+), 60 deletions(-)