Skip to content

Hazard pointer updates

Mathieu Desnoyers linux-mm lkml lkmm llvm rcu 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 13 repliesIn review
  2. v24 patches 5 repliesSuperseded
  3. v14 patches 28 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hazptr: Fix two-phase hazptr_synchronize race with detachkernel/hazptr.c+40 -103 replies
2/4ptr_eq.h: Introduce ptr_eq() to preserve address dependencyarch/x86/include/asm/ptr_eq.h include/asm-generic/Kbuild include/asm-generic/ptr_eq.h +1 more+96 -01 reply
3/4Documentation: RCU: Refer to ptr_eq()Documentation/RCU/rcu_dereference.rst+33 -50 replies
4/4hazptr: Introduce "try acquire" fast path, fallback to overflow listinclude/linux/hazptr.h kernel/hazptr.c+77 -744 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAlan SternPaul E. McKenneyJoel Fernandes (Google)Boqun FengGary GuoBradley MorganKunwu Chan
1/4R-b
2/4R-b R-b
3/4A-b A-b R-b
4/4R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v3 thread

Cover letter [PATCH hazptr v3 0/4] Hazard pointer updates

Hi Paul,

This series applies on top of "hazptr: handle NULL address in hazptr_detach" you have in your rcu dev tree.

This first patch addresses a race identified by Boqun Feng in the two-phase wildcard scheme. (no change since the last series)

Patches 2-3 are prerequisites for using ptr_eq() in the 4th patch. Those were discussed at length in a prior version of hazard pointer patches.

Since the last series, I have renamed ptreq.h to ptr_eq.h, addressing the feedback received from Boqun and Gary.

Patch 4 introduces a "try acquire" helper to allow the fast path to not rely on wildcards, while keeping the wildcard forward progress guarantees in the acquire slow path, used on fast path failure.

Thanks,

Mathieu

Mathieu Desnoyers (4):
hazptr: Fix two-phase hazptr_synchronize race with detach ptr_eq.h: Introduce ptr_eq() to preserve address dependency
Documentation: RCU: Refer to ptr_eq()
hazptr: Introduce "try acquire" fast path, fallback to overflow list

Cc Paul E. McKenney <[email protected]>
Cc Boqun Feng <[email protected]>
Cc Bradley Morgan <[email protected]>
Cc Gary Guo <[email protected]>
Cc Lian Wang <[email protected]>
Cc Kunwu Chan <[email protected]>
 Documentation/RCU/rcu_dereference.rst |  38 +++++++-
 arch/x86/include/asm/ptr_eq.h         |  16 +++
 include/asm-generic/Kbuild            |   1 +
 include/asm-generic/ptr_eq.h          |  16 +++
 include/linux/hazptr.h                |  48 +++++----
 include/linux/ptr_eq.h                |  63 ++++++++++++
 kernel/hazptr.c                       | 135 +++++++++++++++-----------
 7 files changed, 237 insertions(+), 80 deletions(-)
 create mode 100644 arch/x86/include/asm/ptr_eq.h
 create mode 100644 include/asm-generic/ptr_eq.h
 create mode 100644 include/linux/ptr_eq.h
Signature · 1 line
2.43.0