diff options
author | Peter Zijlstra <peterz@infradead.org> | 2016-11-24 14:46:26 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-12-06 12:42:03 +0300 |
commit | f4ec57b632fe15ed7a355099cb96ed4b647416de (patch) | |
tree | 8e0c616b64f96f3a3bd75d53835de3d2275e493d | |
parent | 84d82ec5b9046ecdf16031d3e93a66ef50257402 (diff) | |
download | linux-f4ec57b632fe15ed7a355099cb96ed4b647416de.tar.xz |
locking/ww_mutex: Use relaxed atomics
The stamp is a sequence number, we don't care about memory ordering.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | include/linux/ww_mutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ww_mutex.h b/include/linux/ww_mutex.h index 2bb5deb0012e..7b0066814fa0 100644 --- a/include/linux/ww_mutex.h +++ b/include/linux/ww_mutex.h @@ -120,7 +120,7 @@ static inline void ww_acquire_init(struct ww_acquire_ctx *ctx, struct ww_class *ww_class) { ctx->task = current; - ctx->stamp = atomic_long_inc_return(&ww_class->stamp); + ctx->stamp = atomic_long_inc_return_relaxed(&ww_class->stamp); ctx->acquired = 0; #ifdef CONFIG_DEBUG_MUTEXES ctx->ww_class = ww_class; |