mbox series

[0/2] Modify RCU Tasks to scan idle tasks

Message ID 20240807163506.434885-1-neeraj.upadhyay@kernel.org (mailing list archive)
Headers show
Series Modify RCU Tasks to scan idle tasks | expand

Message

Neeraj Upadhyay Aug. 7, 2024, 4:35 p.m. UTC
From: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>

Architectures for which all deep-idle and entry-exit functions are
marked noinstr, synchronize_rcu_tasks_rude() is not required. However,
disabling synchronize_rcu_tasks_rude() for such architectures require
RCU-tasks to pay attention to idle tasks until they enter the context
where RCU is not watching. In addition, NMI context need to track RCU-tasks
entry/exit for NO_HZ_FULL CPUs. This series adds changes for both of
these requirements.

The series is available in git tree at:
https://git.kernel.org/pub/scm/linux/kernel/git/neeraj.upadhyay/linux-rcu.git/log/?h=rcu-tasks-watch-idle.07.08.24a


- Neeraj


Neeraj Upadhyay (2):
  rcu-tasks: Make RCU-Tasks pay attention to idle tasks
  context_tracking: Invoke Tasks-RCU enter/exit for NMI context

 .../RCU/Design/Requirements/Requirements.rst  |  12 +-
 kernel/context_tracking.c                     |   6 +-
 kernel/rcu/rcu.h                              |   4 +
 kernel/rcu/tasks.h                            | 107 ++++++++++++------
 kernel/rcu/tree.c                             |  12 +-
 kernel/rcu/tree_exp.h                         |   2 +-
 6 files changed, 91 insertions(+), 52 deletions(-)