diff options
author | Elena Reshetova <elena.reshetova@intel.com> | 2019-01-30 13:18:51 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-02-04 09:03:31 +0100 |
commit | 47b8f3ab9c49daa824af848f9e02889662d8638f (patch) | |
tree | bd42ab897748eafaacdc5d0bb97256a678cee3d5 /lib/timerqueue.c | |
parent | 412f34a82ccf7dd52f6b197f6450a33f03342523 (diff) | |
download | lwn-47b8f3ab9c49daa824af848f9e02889662d8638f.tar.gz lwn-47b8f3ab9c49daa824af848f9e02889662d8638f.zip |
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) <peterz@infradead.org>
Signed-off-by: Elena Reshetova <elena.reshetova@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Andrea Parri <andrea.parri@amarulasolutions.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: dvyukov@google.com
Cc: keescook@chromium.org
Cc: stern@rowland.harvard.edu
Link: https://lkml.kernel.org/r/1548847131-27854-2-git-send-email-elena.reshetova@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions