Andrey Konovalov
76695af20c
locking, arch: use WRITE_ONCE()/READ_ONCE() in smp_store_release()/smp_load_acquire()
Replace ACCESS_ONCE() macro in smp_store_release() and smp_load_acquire()
with WRITE_ONCE() and READ_ONCE() on x86, arm, arm64, ia64, metag, mips,
powerpc, s390, sparc and asm-generic since ACCESS_ONCE() does not work
reliably on non-scalar types.
WRITE_ONCE() and READ_ONCE() were introduced in the following commits:
230fa253df ("kernel: Provide READ_ONCE and ASSIGN_ONCE")
43239cbe79 ("kernel: Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)")
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Davidlohr Bueso <dbueso@suse.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Alexander Duyck <alexander.h.duyck@redhat.com>
Cc: Andre Przywara <andre.przywara@arm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: linux-arch@vger.kernel.org
Link: http://lkml.kernel.org/r/1438528264-714-1-git-send-email-andreyknvl@google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-08-03 10:59:30 +02:00
..
2014-04-18 14:20:48 +02:00
2015-02-11 17:06:03 -08:00
2015-06-23 13:35:49 +09:00
2014-08-14 12:48:14 +02:00
2014-10-03 06:06:23 +02:00
2014-01-17 17:01:46 -05:00
2011-05-04 14:41:28 -04:00
2011-05-04 14:41:28 -04:00
2014-01-17 17:01:46 -05:00
2015-08-03 10:59:30 +02:00
2014-04-18 11:40:30 +02:00
2012-10-04 18:20:15 +01:00
2014-04-07 16:36:10 -07:00
2011-05-25 08:39:37 -07:00
2013-02-11 20:00:33 +05:30
2014-09-25 18:00:45 -07:00
2014-04-09 13:44:35 -07:00
2015-05-13 10:51:28 +02:00
2014-10-03 05:46:55 +02:00
2014-10-03 05:46:55 +02:00
2013-01-27 19:23:27 +01:00
2011-07-22 18:45:33 +02:00
2014-05-20 16:55:23 -06:00
2014-09-22 13:35:51 +02:00
2012-12-25 20:14:54 +01:00
2015-03-09 13:05:47 +01:00
2014-04-07 16:36:15 -07:00
2012-03-28 18:30:03 +01:00
2014-05-03 22:20:31 +01:00
2011-03-17 09:19:04 +08:00
2015-05-19 08:39:16 +02:00
2012-02-24 10:39:27 -08:00
2015-05-12 10:46:53 +02:00
2010-10-07 14:08:55 +01:00
2013-10-02 20:02:35 -04:00
2012-10-04 18:20:15 +01:00
2014-07-04 13:27:30 +02:00
2014-07-04 13:27:30 +02:00
2015-06-07 15:28:56 +02:00
2014-06-06 16:08:13 -07:00
2015-06-07 15:28:56 +02:00
2010-12-17 15:07:19 +01:00
2014-09-13 18:38:07 +02:00
2010-10-07 14:08:55 +01:00
2012-10-02 18:01:56 +01:00
2010-10-09 21:51:44 +02:00
2012-07-24 15:27:30 +08:00
2013-06-05 13:21:29 +03:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2014-02-09 21:18:52 +01:00
2013-10-14 15:28:29 +02:00
2014-11-19 11:54:13 +01:00
2015-07-17 16:39:53 -07:00
2014-11-22 21:52:08 +01:00
2012-12-09 23:14:14 +01:00
2012-09-28 14:31:03 +09:30
2014-11-23 13:01:47 +01:00
2013-06-26 12:10:55 +02:00
2013-06-26 12:10:55 +02:00
2013-06-26 12:10:55 +02:00
2012-01-10 17:39:40 -08:00
2012-10-04 18:20:15 +01:00
2013-01-03 15:57:16 -08:00
2015-01-21 16:28:49 +10:30
2012-04-30 15:21:02 -06:00
2014-08-08 15:57:28 -07:00
2015-06-08 07:56:21 -05:00
2014-06-17 19:12:40 -04:00
2015-06-24 17:49:44 -07:00
2015-06-07 15:57:42 +02:00
2011-05-26 17:12:36 -07:00
2014-06-06 07:58:28 +02:00
2015-07-06 14:11:28 +02:00
2015-05-08 12:36:48 +02:00
2015-05-08 12:36:58 +02:00
2014-05-15 00:32:09 +01:00
2014-03-14 18:02:08 +00:00
2015-04-17 09:04:09 -04:00
2014-10-09 22:26:04 -04:00
2013-11-09 00:16:29 -05:00
2012-11-29 00:01:23 -05:00
2013-09-24 06:02:24 +10:00
2012-06-28 17:14:34 +01:00
2012-10-04 18:20:15 +01:00
2012-03-28 18:30:03 +01:00
2014-09-23 16:20:00 -04:00
2013-02-14 09:21:15 -05:00
2012-10-04 18:20:15 +01:00
2015-01-13 15:20:40 +13:00
2012-03-04 17:54:34 -05:00
2010-08-09 20:44:57 -07:00
2012-11-13 15:48:27 -05:00
2014-01-02 10:45:23 +01:00
2014-05-08 10:22:23 +02:00
2013-05-05 10:58:06 -07:00
2011-03-01 15:49:39 +01:00
2015-04-21 09:33:10 -07:00
2013-09-30 14:31:02 -07:00
2014-05-01 08:57:44 -07:00
2012-10-03 21:21:06 +02:00