diff options
author | Elena Reshetova <[email protected]> | 2019-01-30 13:18:51 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-02-04 09:03:31 +0100 |
commit | 47b8f3ab9c49daa824af848f9e02889662d8638f (patch) | |
tree | bd42ab897748eafaacdc5d0bb97256a678cee3d5 /include/linux/compiler_attributes.h | |
parent | 412f34a82ccf7dd52f6b197f6450a33f03342523 (diff) |
refcount_t: Add ACQUIRE ordering on success for dec(sub)_and_test() variants
This adds an smp_acquire__after_ctrl_dep() barrier on successful
decrease of refcounter value from 1 to 0 for refcount_dec(sub)_and_test
variants and therefore gives stronger memory ordering guarantees than
prior versions of these functions.
Co-developed-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Elena Reshetova <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Andrea Parri <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions