implement atomic_fetch_$op
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest33 patches 39 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/33 | locking,alpha: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}()arch/ | +56 | 0 replies | |
| 2/33 | locking,arc: Implement atomic_fetch_{add,sub,and,andnot,or,xor}()arch/ | +94 | 0 replies | |
| 3/33 | locking,arm: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()arch/ | +98 | 0 replies | |
| 4/33 | locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()arch/ arch/ | +148 | 0 replies | |
| 5/33 | arm64: atomic: generate LSE non-return cases using common macrosarch/ | +32 | 0 replies | |
| 6/33 | locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}() for LSE instructionsarch/ | +172 | 0 replies | |
| 7/33 | locking,avr32: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ | +51 | 0 replies | |
| 8/33 | locking,blackfin: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ arch/ arch/ | +40 | 0 replies | |
| 9/33 | locking,frv: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ arch/ | +14 | 0 replies | |
| 10/33 | locking,h8300: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ | +25 | 0 replies | |
| 11/33 | locking,hexagon: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ | +28 | 0 replies | |
| 12/33 | locking,ia64: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ | +116 | 0 replies | |
| 13/33 | locking,m32r: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ | +34 | 0 replies | |
| 14/33 | locking,m68k: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ | +49 | 27 replies | |
| 15/33 | locking,metag: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ arch/ arch/ | +63 | 0 replies | |
| 16/33 | locking,mips: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ | +129 | 0 replies | |
| 17/33 | locking,mn10300: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ | +31 | 0 replies | |
| 18/33 | locking,parisc: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ | +57 | 0 replies | |
| 19/33 | locking,powerpc: Implement atomic{,64}_fetch_{add,sub,and,or,xor}{,_relaxed,_acquire,_release}()arch/ | +74 | 3 replies | |
| 20/33 | locking,s390: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ | +32 | 0 replies | |
| 21/33 | locking,sh: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ arch/ arch/ +1 more | +87 | 0 replies | |
| 22/33 | locking,sparc: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ arch/ arch/ +3 more | +105 | 1 reply | |
| 23/33 | locking,tile: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ arch/ arch/ +3 more | +159 | 0 replies | |
| 24/33 | locking,x86: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()arch/ arch/ arch/ | +88 | 0 replies | |
| 25/33 | locking,xtensa: Implement atomic_fetch_{add,sub,and,or,xor}()arch/ | +50 | 0 replies | |
| 26/33 | locking: Fix atomic64_relaxed bitsinclude/ | +153 | 0 replies | |
| 27/33 | locking: Implement atomic{,64,_long}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()include/ include/ include/ +3 more | +493 | 0 replies | |
| 28/33 | locking: Remove linux/atomic.h:atomic_fetch_orarch/ arch/ arch/ +20 more | +0 | 0 replies | |
| 29/33 | locking: Remove the deprecated atomic_{set,clear}_mask() functionsinclude/ kernel/ | +2 | 0 replies | |
| 30/33 | locking,alpha: Convert to _relaxed atomicsarch/ | +24 | 0 replies | |
| 31/33 | locking,mips: Convert to _relaxed atomicsarch/ | +22 | 0 replies | |
| 32/33 | locking,qrwlock: Employ atomic_fetch_add_acquire()kernel/ | +1 | 0 replies | |
| 33/33 | locking,rwsem: Employ atomic_long_fetch_add()kernel/ | +1 | 0 replies |
Reviews trailers per patch
8 of 33 patches have a Reviewed-by or Acked-by.
| Patch | Vineet Gupta | Will Deacon | James Hogan | Chris Metcalf | Waiman Long | Martin Schwidefsky | Hans-Christian Noren Egtvedt | David S. Miller |
|---|---|---|---|---|---|---|---|---|
| 1/33 | ||||||||
| 2/33 | A-b | |||||||
| 3/33 | A-b | |||||||
| 4/33 | ||||||||
| 5/33 | ||||||||
| 6/33 | ||||||||
| 7/33 | A-b | |||||||
| 8/33 | ||||||||
| 9/33 | ||||||||
| 10/33 | ||||||||
| 11/33 | ||||||||
| 12/33 | ||||||||
| 13/33 | ||||||||
| 14/33 | ||||||||
| 15/33 | A-b | |||||||
| 16/33 | ||||||||
| 17/33 | ||||||||
| 18/33 | ||||||||
| 19/33 | ||||||||
| 20/33 | A-b | |||||||
| 21/33 | ||||||||
| 22/33 | A-b | |||||||
| 23/33 | A-b | |||||||
| 24/33 | ||||||||
| 25/33 | ||||||||
| 26/33 | ||||||||
| 27/33 | ||||||||
| 28/33 | ||||||||
| 29/33 | ||||||||
| 30/33 | ||||||||
| 31/33 | ||||||||
| 32/33 | A-b | |||||||
| 33/33 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.
Cover letter [PATCH -v2 00/33] implement atomic_fetch_$op
As there have been a few requests for atomic_fetch_$op primitives and recently by Linus, I figured I'd go and implement the lot.
The atomic_fetch_$op differs from the existing atomic_$op_return we already have by returning the old value instead of the new value. This is especially useful when the operation is irreversible (like bitops), and allows for things like test-and-set.
This version incorporates all feedback from last time and is now complete thanks to Will implementing ARMv8.1-LSE versions.
No known build breakage from the build-bot.
Notes:
- arc asm/atomic.h is a bit of a mess after the eznps merge, I would recommend a restructure or split of that file, but could not find the will to do it.
- arc, metag and tile could convert to _relaxed.
I'm aiming to merge this for v4.8 which should get this a fair few weeks in -next.