locking/osq: Relax atomic semantics
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 14 Sep 2015 07:37:24 +0000 (00:37 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 18 Sep 2015 07:27:29 +0000 (09:27 +0200)
commitc55a6ffa6285e29f874ed403979472631ec70bff
tree122677e6f6cb995ba2bf53591c9b24e8322e1ff0
parent6e1e5196975fb7ecc501b3fe1075b77aea2b7839
locking/osq: Relax atomic semantics

... by using acquire/release for ops around the lock->tail. As such,
weakly ordered archs can benefit from more relaxed use of barriers
when issuing atomics.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
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: Waiman Long <Waiman.Long@hpe.com>
Link: http://lkml.kernel.org/r/1442216244-4409-3-git-send-email-dave@stgolabs.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/osq_lock.c