Cmpxchg and xchg operations
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 43 repliesIn review
- v14 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Determine that cmpxchg without LOCK is faster than xchg with implied lock (numbers are in the patch description).
- Drop 64 bit cpuops operations on 32 bit x86 (resulted in various nasty things such as 64 bit alignment requirements for 64 bit entities on 32 bit, sizable inline code and very complex macros)
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | percpu: Generic this_cpu_cmpxchg() and this_cpu_xchg supportinclude/ | +135 | 1 reply | |
| 2/5 | x86: this_cpu_cmpxchg and this_cpu_xchg operationsarch/ arch/ | +111 | 1 reply | |
| 3/5 | irq_work: Use per cpu atomics instead of regular atomicskernel/ | +9 | 8 replies | |
| 4/5 | vmstat: User per cpu atomics to avoid interrupt disable / enablemm/ | +87 | 2 replies | |
| 5/5 | cpuops: Use cmpxchg for xchg to avoid lock semanticsarch/ | +15 | 31 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Mathieu Desnoyers | H. Peter Anvin | Tejun Heo |
|---|---|---|---|
| 1/5 | |||
| 2/5 | |||
| 3/5 | A-b | ||
| 4/5 | |||
| 5/5 | A-b | A-b A-b | A-b A-b A-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 3 reviewers.
Cover letter [cpuops cmpxchg V2 0/5] Cmpxchg and xchg operations
Add cmpxchg and xchg operations to the cpu ops and use them for irq handling and for vm statistics.
Requires the per cpu patches for and_return cpu ops.
V1->V2:
- Determine that cmpxchg without LOCK is faster than xchg with implied lock (numbers are in the patch description).
- Drop 64 bit cpuops operations on 32 bit x86 (resulted in various nasty things such as 64 bit alignment requirements for 64 bit entities on 32 bit, sizable inline code and very complex macros)