Thread (5 messages) 5 messages, 5 authors, 2015-08-03

[PATCH v2] arch: use WRITE_ONCE/READ_ONCE in smp_store_release/smp_load_acquire

From: dave@stgolabs.net (Davidlohr Bueso)
Date: 2015-08-03 01:40:07
Also in: linux-arch, linux-mips, linux-s390, linuxppc-dev, lkml, sparclinux

On Sun, 2015-08-02 at 17:11 +0200, Andrey Konovalov wrote:
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 commits 230fa253df63
("kernel: Provide READ_ONCE and ASSIGN_ONCE") and 43239cbe79fc ("kernel:
Change ASSIGN_ONCE(val, x) to WRITE_ONCE(x, val)").

Signed-off-by: Andrey Konovalov <redacted>
Acked-by: Davidlohr Bueso <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help