Skip to content

rcu: Fix expedited GP deadlock

Frederic Weisbecker lkml rcu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7rcu/exp: Fix RCU expedited parallel grace period kworker allocation failure recoverykernel/rcu/tree.c+1 -00 replies
2/7rcu/exp: Handle RCU expedited grace period kworker allocation failurekernel/rcu/tree.c kernel/rcu/tree_exp.h+21 -60 replies
3/7rcu: s/boost_kthread_mutex/kthread_mutexkernel/rcu/tree.c kernel/rcu/tree.h kernel/rcu/tree_plugin.h+7 -70 replies
4/7rcu/exp: Move expedited kthread worker creation functions above rcutree_prepare_cpu()kernel/rcu/tree.c+48 -480 replies
5/7rcu/exp: Make parallel exp gp kworker per rcu nodekernel/rcu/rcu.h kernel/rcu/tree.c kernel/rcu/tree.h +2 more+54 -350 replies
6/7rcu/exp: Handle parallel exp gp kworkers affinitykernel/rcu/tree.c kernel/rcu/tree_plugin.h+78 -430 replies
7/7rcu/exp: Remove rcu_par_gp_wqkernel/rcu/rcu.h kernel/rcu/tree.c kernel/rcu/tree.h +1 more+8 -1150 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchKalesh Singh
1/7R-b
2/7R-b
3/7
4/7
5/7
6/7
7/7

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 0/7] rcu: Fix expedited GP deadlock

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 v2 (no functional changes, just renames and reorganization):

_ Move nocb cleanups to their own series
_ Rename can_queue parameter to use_worker [2/7]
_ Better explain the rename of the mutex [3/7]
_ New commit with just code move to ease review [4/7] _ Comment declaration of the new rnp->exp_worker field [5/7]

Thanks.

Frederic Weisbecker (7):
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: Move expedited kthread worker creation functions above
rcutree_prepare_cpu()
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        | 175 +++++++++++++++++++++++++++------------
 kernel/rcu/tree.h        |  11 ++-
 kernel/rcu/tree_exp.h    |  78 +++--------------
 kernel/rcu/tree_plugin.h |  52 ++----------
 5 files changed, 142 insertions(+), 179 deletions(-)
Signature · 1 line
2.34.1