Skip to content

rcu: Fix expedited GP deadlock (and cleanup some nocb stuff)

Frederic Weisbecker lkml rcu 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v18 patches 8 repliesSuperseded

Changes in v2 from the cover letter

* Add __maybe_unused to __call_rcu_nocb_wake() declaration (reported by Paul)

* Add reviewed-by tags

* Fix nocb changelog (reported by Neeraj)

* Fixed comment (reported by Hillf)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8rcu/nocb: Make IRQs disablement symmetrickernel/rcu/tree.c kernel/rcu/tree_nocb.h+15 -140 replies
2/8rcu/nocb: Re-arrange call_rcu() NOCB specific codekernel/rcu/tree.c kernel/rcu/tree.h kernel/rcu/tree_nocb.h+39 -320 replies
3/8rcu/exp: Fix RCU expedited parallel grace period kworker allocation failure recoverykernel/rcu/tree.c+1 -00 replies
4/8rcu/exp: Handle RCU expedited grace period kworker allocation failurekernel/rcu/tree.c kernel/rcu/tree_exp.h+21 -60 replies
5/8rcu: s/boost_kthread_mutex/kthread_mutexkernel/rcu/tree.c kernel/rcu/tree.h kernel/rcu/tree_plugin.h+7 -70 replies
6/8rcu/exp: Make parallel exp gp kworker per rcu nodekernel/rcu/rcu.h kernel/rcu/tree.c kernel/rcu/tree.h +2 more+81 -640 replies
7/8rcu/exp: Handle parallel exp gp kworkers affinitykernel/rcu/tree.c kernel/rcu/tree_plugin.h+78 -430 replies
8/8rcu/exp: Remove rcu_par_gp_wqkernel/rcu/rcu.h kernel/rcu/tree.c kernel/rcu/tree.h +1 more+8 -1120 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchNeeraj Upadhyay (AMD)Kalesh Singh
1/8R-b
2/8
3/8R-b
4/8R-b
5/8
6/8
7/8
8/8

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

Read the v2 thread

Cover letter [PATCH 0/8 v2] rcu: Fix expedited GP deadlock (and cleanup some nocb stuff)

TREE04 can trigger a writer stall if run with memory pressure. This is due to a circular dependency between waiting for expedited grace period and polling on expedited grace period when workqueues go back to mayday serialization.

Here is a proposal fix.

Changes since v1:

* Add __maybe_unused to __call_rcu_nocb_wake() declaration (reported by Paul)

* Add reviewed-by tags

* Fix nocb changelog (reported by Neeraj)

* Fixed comment (reported by Hillf)

Frederic Weisbecker (8):
rcu/nocb: Make IRQs disablement symmetric
rcu/nocb: Re-arrange call_rcu() NOCB specific code rcu/exp: Fix RCU expedited parallel grace period kworker allocation
failure recovery
rcu/exp: Handle RCU expedited grace period kworker allocation failure
rcu: s/boost_kthread_mutex/kthread_mutex
rcu/exp: Make parallel exp gp kworker per rcu node rcu/exp: Handle parallel exp gp kworkers affinity
rcu/exp: Remove rcu_par_gp_wq

 kernel/rcu/rcu.h         |   5 -
 kernel/rcu/tree.c        | 222 +++++++++++++++++++++++++--------------
 kernel/rcu/tree.h        |  18 ++--
 kernel/rcu/tree_exp.h    |  81 +++-----------
 kernel/rcu/tree_nocb.h   |  38 ++++---
 kernel/rcu/tree_plugin.h |  52 ++-------
 6 files changed, 194 insertions(+), 222 deletions(-)
Signature · 1 line
2.34.1