Skip to content

locking/qspinlock, x86: Improve determinism for x86

Peter Zijlstra lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v1 RFC3 patches 28 repliesSuperseded

Changes in v2 from the cover letter

- Adjusted comments in #2, wildea01
- 'Simplified' GEN_*_RMWcc, peterz
- Rewrote _the_ patch to use BTS, wildea01

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4locking/qspinlock: Re-order codekernel/locking/qspinlock.c+27 -290 replies
2/4locking/qspinlock: Rework some commentskernel/locking/qspinlock.c+27 -111 reply
3/4x86/asm: Simplify GEN_*_RMWcc() macrosarch/x86/include/asm/atomic.h arch/x86/include/asm/atomic64_64.h arch/x86/include/asm/bitops.h +4 more+64 -551 reply
4/4locking/qspinlock, x86: Provide liveness guaranteearch/x86/include/asm/qspinlock.h kernel/locking/qspinlock.c+30 -12 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchWill Deacon
1/4A-b
2/4A-b
3/4
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] locking/qspinlock, x86: Improve determinism for x86

Back when Will did his qspinlock determinism patches, we were left with one cmpxchg loop on x86 due to the use of atomic_fetch_or(). Will proposed a nifty trick:

http://lkml.kernel.org/r/[email protected]

While that didn't quite work, this series implements that basic idea.

Changes since v1:

- Adjusted comments in #2, wildea01
- 'Simplified' GEN_*_RMWcc, peterz
- Rewrote _the_ patch to use BTS, wildea01