Skip to content

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

Frederic Weisbecker lkml rcu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11rcu/nocb: Make local rcu_nocb_lock_irqsave() safe against concurrent deoffloadingkernel/rcu/tree.h+10 -60 replies
2/11rcu/nocb: Prepare state machine for a new stepinclude/linux/rcu_segcblist.h kernel/rcu/rcu_segcblist.c kernel/rcu/rcu_segcblist.h +2 more+48 -290 replies
3/11rcu/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 -44 replies
4/11rcu/nocb: Make rcu_core() callbacks acceleration preempt-safekernel/rcu/tree.c+3 -20 replies
5/11rcu/nocb: Make rcu_core() callbacks acceleration (de-)offloading safekernel/rcu/tree.c+16 -20 replies
6/11rcu/nocb: Check a stable offloaded state to manipulate qlen_last_fqs_checkkernel/rcu/tree.c+1 -10 replies
7/11rcu/nocb: Use appropriate rcu_nocb_lock_irqsave()kernel/rcu/tree.c+3 -50 replies
8/11rcu/nocb: Limit number of softirq callbacks only on softirqkernel/rcu/tree.c+2 -30 replies
9/11rcu: Fix callbacks processing time limit retaining cond_resched()kernel/rcu/tree.c+15 -100 replies
10/11rcu: Apply callbacks processing time limit only on softirqkernel/rcu/tree.c+12 -130 replies
11/11rcu/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 11 patches have a Reviewed-by or Acked-by.

PatchValentin SchneiderSebastian Andrzej SiewiorThomas Gleixner
1/11Reported-and-tested-by T-b
2/11R-b T-b T-b
3/11T-b T-b
4/11Reported-and-tested-by R-b T-b
5/11Reported-and-tested-by T-b
6/11Reported-and-tested-by T-b Original-patch-by
7/11R-b T-b T-b
8/11T-b T-b
9/11R-b T-b T-b
10/11R-b T-b T-b
11/11T-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/11] rcu: Make rcu_core() safe in PREEMPT_RT with NOCB + a few other fixes v2

Hi,

No code change in this v2, only changelogs:

* Add tags from Valentin and Sebastian

* Remove last reference to SEGCBLIST_SOFTIRQ_ONLY (thanks Valentin)

* Rewrite changelog for "rcu/nocb: Check a stable offloaded state to manipulate qlen_last_fqs_check" after off-list debates with Paul.

* Remove the scenario with softirq interrupting rcuc on "rcu/nocb: Limit number of softirq callbacks only on softirq" as it's probably not possible (thanks Valentin).

* Remove the scenario with task spent scheduling out accounted on tlimit as it's not possible (thanks Valentin)
(see "rcu: Apply callbacks processing time limit only on softirq")

* Fixed changelog of
"rcu/nocb: Don't invoke local rcu core on callback overload from nocb kthread" (thanks Sebastian).

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

	rcu/rt-v2

HEAD: 2c9349986d5f70a555195139665841cd98e9aba4

Thanks,
Frederic
---

Frederic Weisbecker (10):
rcu/nocb: Make local rcu_nocb_lock_irqsave() safe against concurrent deoffloading 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.h             | 16 +++++---
 kernel/rcu/tree_nocb.h        | 29 ++++++++++++---
 6 files changed, 141 insertions(+), 64 deletions(-)