]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/qrwlock: Implement queue_write_unlock() using smp_store_release()
authorWill Deacon <will.deacon@arm.com>
Thu, 6 Aug 2015 16:54:41 +0000 (17:54 +0100)
committerAllen Pais <allen.pais@oracle.com>
Fri, 16 Jun 2017 08:46:47 +0000 (14:16 +0530)
commit1d8c6e7aaafa20d2e4a00ef1dc19c15a1c29700d
tree2020d889c2aa5b79bbda7d416b333fba238df4ec
parent18cacb8a96f7ca20cb3f0807367840227c780426
locking/qrwlock: Implement queue_write_unlock() using smp_store_release()

Since the following commit:

  536fa402221f ("compiler: Allow 1- and 2-byte smp_load_acquire() and smp_store_release()")

smp_store_release() supports byte accesses, so use that in writer unlock
and remove the conditional macro override.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Waiman Long <Waiman.Long@hp.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: paulmck@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1438880084-18856-6-git-send-email-will.deacon@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit 2b2a85a4d3534b8884fcfa5bb52837f0e1c672bc)

Signed-off-by: Babu Moger <babu.moger@oracle.com>
Orabug: 26183741
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/x86/include/asm/qrwlock.h
include/asm-generic/qrwlock.h