Skip to content

rcu: Fix PF_IDLE related issues, part. 1

Frederic Weisbecker lkml rcu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4softirq: Rename __raise_softirq_irqoff() to raise_softirq_no_wake()block/blk-mq.c include/linux/interrupt.h kernel/softirq.c +2 more+11 -110 replies
2/4softirq: Introduce raise_ksoftirqd_irqoff()include/linux/interrupt.h kernel/softirq.c+43 -290 replies
3/4rcu: Make tiny RCU use ksoftirqd to trigger a QS from idlekernel/rcu/tiny.c+16 -51 reply
4/4Revert "kernel/sched: Modify initial boot task idle setup"kernel/sched/core.c kernel/sched/idle.c+1 -24 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchPaul E. McKenney
1/4
2/4
3/4R-b
4/4

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/4] rcu: Fix PF_IDLE related issues, part. 1

The modification of PF_IDLE semantics lately to fix a bug in rcutiny eventually introduced new bugs in RCU-tasks. This series revert that PF_IDLE modification and fix rcutiny in an alternate way.

More issues need to be fixed in RCU-tasks:

* The boot code preceding the idle entry is included in this quiescent state. Especially after the completion of kthreadd_done after which init/1 can launch userspace concurrently. The window is tiny before PF_IDLE is set but it exists.

* Similarly, the boot code preceding the idle entry on secondary CPUs is wrongly accounted as RCU tasks quiescent state.

And those will be fixed separetely.

Frederic Weisbecker (4):
softirq: Rename __raise_softirq_irqoff() to raise_softirq_no_wake()
softirq: Introduce raise_ksoftirqd_irqoff()
rcu: Make tiny RCU use ksoftirqd to trigger a QS from idle Revert "kernel/sched: Modify initial boot task idle setup"

 block/blk-mq.c            |  2 +-
 include/linux/interrupt.h |  3 ++-
 kernel/rcu/tiny.c         | 21 +++++++++++++-----
 kernel/sched/core.c       |  2 +-
 kernel/sched/idle.c       |  1 -
 kernel/softirq.c          | 45 +++++++++++++++++++++++++--------------
 lib/irq_poll.c            |  4 ++--
 net/core/dev.c            |  8 +++----
 8 files changed, 55 insertions(+), 31 deletions(-)
Signature · 1 line
2.34.1