Skip to content

rcu/x86: Use per-cpu rcu preempt count

Lai Jiangshan lkml rcu 2 versions – Applied

Status from this message: The following commit has been merged into the x86/entry branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 9 repliesApplied
  2. v110 patches 9 repliesSuperseded

Changes in v2 from the cover letter

Merge thunk_64.S and thunk_32.S into thunk.S Add missing #ifdef in arch/x86/kernel/cpu/common.c

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/11lib: Use rcu_preempt_depth() to replace current->rcu_read_lock_nestinglib/locking-selftest.c+3 -30 replies
2/11rcu: Move rcu_preempt_depth_set() to rcupdate.hinclude/linux/rcupdate.h kernel/rcu/tree_plugin.h+1 -50 replies
3/11rcu: Reorder tree_exp.h after tree_plugin.hkernel/rcu/tree.c kernel/rcu/tree_plugin.h+2 -12 replies
4/11rcu: Add macros set_rcu_preempt_special() and clear_rcu_preempt_special()kernel/rcu/tree_exp.h kernel/rcu/tree_plugin.h+14 -80 replies
5/11rcu: Make rcu_read_unlock_special() globalinclude/linux/rcupdate.h kernel/rcu/tree_plugin.h+6 -30 replies
6/11rcu: Rename marco __LINUX_RCU_H to __KERNEL_RCU_Hkernel/rcu/rcu.h+3 -30 replies
7/11sched/core: Add rcu_preempt_switch()kernel/rcu/rcu.h kernel/sched/core.c+7 -00 replies
8/11x86/entry: Merge thunk_64.S and thunk_32.S into thunk.Sarch/x86/entry/Makefile arch/x86/entry/thunk.S arch/x86/entry/thunk_32.S+1 -190 replies
9/11rcu: Implement PCPU_RCU_PREEMPT_COUNT frameworkinclude/linux/rcupdate.h kernel/rcu/Kconfig kernel/rcu/rcu.h +1 more+53 -02 replies
10/11x86/rcu: Add rcu_preempt_countarch/x86/Kconfig arch/x86/include/asm/current.h arch/x86/include/asm/rcu_preempt.h +1 more+115 -02 replies
11/11x86/rcu: Add THUNK rcu_read_unlock_special_thunkarch/x86/entry/thunk.S arch/x86/include/asm/rcu_preempt.h+8 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 00/11] rcu/x86: Use per-cpu rcu preempt count

From: Lai Jiangshan <[email protected]>

Changed from v1:
Merge thunk_64.S and thunk_32.S into thunk.S Add missing #ifdef in arch/x86/kernel/cpu/common.c

X86 can access percpu data in a single instruction.

Use per-cpu rcu preempt count and make it able to be inlined.

patch 1-8: prepare
patch 9-11: implement PCPU_RCU_PREEMPT_COUNT

Cc "Paul E. McKenney" <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Frederic Weisbecker <[email protected]>

Lai Jiangshan (11):
lib: Use rcu_preempt_depth() to replace current->rcu_read_lock_nesting
rcu: Move rcu_preempt_depth_set() to rcupdate.h
rcu: Reorder tree_exp.h after tree_plugin.h
rcu: Add macros set_rcu_preempt_special() and
clear_rcu_preempt_special()
rcu: Make rcu_read_unlock_special() global
rcu: Rename marco __LINUX_RCU_H to __KERNEL_RCU_H sched/core: Add rcu_preempt_switch()
x86/entry: Merge thunk_64.S and thunk_32.S into thunk.S
rcu: Implement PCPU_RCU_PREEMPT_COUNT framework
x86/rcu: Add rcu_preempt_count
x86/rcu: Add THUNK rcu_read_unlock_special_thunk

 arch/x86/Kconfig                       |   1 +
 arch/x86/entry/Makefile                |   2 +-
 arch/x86/entry/{thunk_64.S => thunk.S} |   5 ++
 arch/x86/entry/thunk_32.S              |  18 ----
 arch/x86/include/asm/current.h         |   3 +
 arch/x86/include/asm/rcu_preempt.h     | 109 +++++++++++++++++++++++++
 arch/x86/kernel/cpu/common.c           |   4 +
 include/linux/rcupdate.h               |  36 ++++++++
 kernel/rcu/Kconfig                     |   8 ++
 kernel/rcu/rcu.h                       |  15 +++-
 kernel/rcu/tree.c                      |   2 +-
 kernel/rcu/tree_exp.h                  |   2 +-
 kernel/rcu/tree_plugin.h               |  41 ++++++----
 kernel/sched/core.c                    |   2 +
 lib/locking-selftest.c                 |   6 +-
 15 files changed, 212 insertions(+), 42 deletions(-)
 rename arch/x86/entry/{thunk_64.S => thunk.S} (72%)
 delete mode 100644 arch/x86/entry/thunk_32.S
 create mode 100644 arch/x86/include/asm/rcu_preempt.h

base-commit: f2f80ac809875855ac843f9e5e7480604b5cbff5

Signature · 1 line
2.19.1.6.gb485710b