locking/qrwlock: get qrwlocks up and running on arm64
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | locking/qrwlock: include <linux/spinlock.h> for arch_spin_{lock,unlock}kernel/ | +1 | 0 replies | |
| 2/9 | locking/qrwlock: avoid redundant atomic_add_return on read_lock_slowpathkernel/ | +2 | 6 replies | |
| 3/9 | locking/qrwlock: tidy up rspin_until_writer_unlockkernel/ | +10 | 0 replies | |
| 4/9 | locking/qrwlock: implement queue_write_unlock using smp_store_releasearch/ include/ | +1 | 1 reply | |
| 5/9 | locking/qrwlock: remove redundant cmpxchg barriers on writer slow-pathkernel/ | +5 | 2 replies | |
| 6/9 | locking/qrwlock: allow architectures to hook in to contended pathsinclude/ kernel/ | +12 | 2 replies | |
| 7/9 | locking/qrwlock: expose internal lock structure in qrwlock definitioninclude/ include/ kernel/ | +19 | 0 replies | |
| 8/9 | arm64: cmpxchg: implement cmpxchg_relaxedarch/ | +4 | 0 replies | |
| 9/9 | arm64: locking: replace read/write locks with generic qrwlock codearch/ arch/ arch/ +1 more | +33 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/9] locking/qrwlock: get qrwlocks up and running on arm64
Hi all,
This patch series gently massages the qrwlock code so as to make it usable on arm64 as a replacement for our current implementation. The last two patches actually do the arch conversion and are included here for reference.
Most of the work is removing redundant memory barriers from the current implementation and adding hooks to the contended paths to allow us to avoid busy-waiting.
Implemented on top of -tip (i.e. the patches queued there from Waiman), but this is likely to conflict with his latest series.
All feedback welcome,
Will
--->8
Will Deacon (9):
locking/qrwlock: include <linux/spinlock.h> for
arch_spin_{lock,unlock} locking/qrwlock: avoid redundant atomic_add_return on
read_lock_slowpath
locking/qrwlock: tidy up rspin_until_writer_unlock locking/qrwlock: implement queue_write_unlock using smp_store_release locking/qrwlock: remove redundant cmpxchg barriers on writer slow-path locking/qrwlock: allow architectures to hook in to contended paths locking/qrwlock: expose internal lock structure in qrwlock definition
arm64: cmpxchg: implement cmpxchg_relaxed
arm64: locking: replace read/write locks with generic qrwlock code
arch/arm64/Kconfig | 1 + arch/arm64/include/asm/cmpxchg.h | 6 +- arch/arm64/include/asm/qrwlock.h | 30 ++++++++ arch/arm64/include/asm/spinlock.h | 122 +------------------------------- arch/arm64/include/asm/spinlock_types.h | 10 +-- arch/x86/include/asm/qrwlock.h | 10 --- include/asm-generic/qrwlock.h | 11 ++- include/asm-generic/qrwlock_types.h | 17 ++++- kernel/locking/qrwlock.c | 60 +++++++--------- 9 files changed, 81 insertions(+), 186 deletions(-) create mode 100644 arch/arm64/include/asm/qrwlock.h
Signature · 1 line
2.1.4