Re: [RFC][PATCH 05/31] locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()
From: Will Deacon
Date: Fri Apr 22 2016 - 07:08:44 EST
- Next message: Jiri Slaby: "[PATCH 3.12 71/78] USB: usbip: fix potential out-of-bounds write"
- Previous message: Jiri Slaby: "[PATCH 3.12 77/78] KVM: x86: removing unused variable"
- In reply to: Peter Zijlstra: "[RFC][PATCH 05/31] locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()"
- Next in thread: Will Deacon: "Re: [RFC][PATCH 05/31] locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Apr 22, 2016 at 11:04:18AM +0200, Peter Zijlstra wrote:
> Implement FETCH-OP atomic primitives, these are very similar to the
> existing OP-RETURN primitives we already have, except they return the
> value of the atomic variable _before_ modification.
>
> This is especially useful for irreversible operations -- such as
> bitops (because it becomes impossible to reconstruct the state prior
> to modification).
>
> XXX lacking LSE bits
I'll cook a patch for this, but thanks for the series.
Will
- Next message: Jiri Slaby: "[PATCH 3.12 71/78] USB: usbip: fix potential out-of-bounds write"
- Previous message: Jiri Slaby: "[PATCH 3.12 77/78] KVM: x86: removing unused variable"
- In reply to: Peter Zijlstra: "[RFC][PATCH 05/31] locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()"
- Next in thread: Will Deacon: "Re: [RFC][PATCH 05/31] locking,arm64: Implement atomic{,64}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]