Skip to content

RFC Getting rid of smp_mb__before_spinlock

Peter Zijlstra linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 35 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm: Rework {set,clear,mm}_tlb_flush_pending()include/linux/mm_types.h mm/huge_memory.c mm/migrate.c+25 -1324 replies
2/5locking: Introduce smp_mb__after_spinlock().arch/arm64/include/asm/spinlock.h arch/powerpc/include/asm/spinlock.h include/linux/spinlock.h +1 more+43 -20 replies
3/5overlayfs: Remove smp_mb__before_spinlock() usagefs/overlayfs/readdir.c+2 -20 replies
4/5locking: Remove smp_mb__before_spinlock()Documentation/memory-barriers.txt Documentation/translations/ko_KR/memory-barriers.txt arch/arm64/include/asm/spinlock.h +3 more+13 -460 replies
5/5powerpc: Remove SYNC from _switcharch/powerpc/kernel/entry_64.S+0 -810 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWill Deacon
SeriesA-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC][PATCH 0/5] Getting rid of smp_mb__before_spinlock

There was a thread on this somewhere about a year ago, I finally remembered to finish this :-)

This series removes two smp_mb__before_spinlock() (ab)users and converts the scheduler to use smp_mb__after_spinlock(), which provides more guarantees with the same amount of barriers.