Skip to content

Wire up lockless lockrefs for ARM

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: cmpxchg: implement barrier-less cmpxchg64_localarch/arm/include/asm/cmpxchg.h+42 -100 replies
2/3ARM: cmpxchg: implement cmpxchg64_relaxedarch/arm/include/asm/cmpxchg.h+3 -10 replies
3/3ARM: lockref: add support for lockless lockrefs using cmpxchg64arch/arm/Kconfig arch/arm/include/asm/spinlock.h+7 -20 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 0/3] Wire up lockless lockrefs for ARM

Hello,

This is version two of the patch I originally posted here:

http://lists.infradead.org/pipermail/linux-arm-kernel/2013-September/200109.html

The main changes since then are:

* Separate cmpxchg64 from atomic64_cmpxchg, so we can implement a barrier-less version.

* Use this new barrier-less function to implement cmpxchg64_relaxed

* Finally, use cmpxchg64_relaxed to optimise cmpxchg64_local and implement lockless lockrefs.

This results in ~100% improvement when running Linus's t.c test (essentially stating a file in a loop for 10 seconds).

Feedback welcome,

Will

Will Deacon (3):
ARM: cmpxchg: implement barrier-less cmpxchg64_local
ARM: cmpxchg: implement cmpxchg64_relaxed
ARM: lockref: add support for lockless lockrefs using cmpxchg64

 arch/arm/Kconfig                |  1 +
 arch/arm/include/asm/cmpxchg.h  | 58 ++++++++++++++++++++++++++++++++---------
 arch/arm/include/asm/spinlock.h |  8 ++++--
 3 files changed, 53 insertions(+), 14 deletions(-)
Signature · 1 line
1.8.2.2