Skip to content

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

Frederic Weisbecker lkml rcu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 25 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+44 -282 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 -42 replies
4/11rcu/nocb: Make rcu_core() callbacks acceleration preempt-safekernel/rcu/tree.c+3 -21 reply
5/11rcu/nocb: Make rcu_core() callbacks acceleration (de-)offloading safekernel/rcu/tree.c+16 -22 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+2 -42 replies
8/11rcu/nocb: Limit number of softirq callbacks only on softirqkernel/rcu/tree.c+2 -33 replies
9/11rcu: Fix callbacks processing time limit retaining cond_resched()kernel/rcu/tree.c+15 -101 reply
10/11rcu: Apply callbacks processing time limit only on softirqkernel/rcu/tree.c+12 -134 replies
11/11rcu/nocb: Don't invoke local rcu core on callback overload from nocb kthreadkernel/rcu/tree.c+5 -52 replies

Reviews trailers per patch

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

PatchValentin SchneiderSebastian Andrzej Siewior
SeriesT-b T-b
1/11
2/11R-b
3/11
4/11R-b
5/11
6/11
7/11R-b
8/11
9/11R-b
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

PREEMPT_RT has made rcu_core() preemptible, making it unsafe against concurrent NOCB (de-)offloading.

Thomas suggested to drop the local_lock() based solution and simply check the offloaded state while context looks safe but that's not enough. Here is a bit of rework.

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

HEAD: aac1c58961446c731f2e989bd822ca1fd2659bad

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    |  7 ++--
 kernel/rcu/tree.c             | 85 ++++++++++++++++++++++++++++++-------------
 kernel/rcu/tree.h             | 16 +++++---
 kernel/rcu/tree_nocb.h        | 29 ++++++++++++---
 6 files changed, 136 insertions(+), 62 deletions(-)