arch/arch.h: Introduce atomic_{load_acquire,store_release}()
authorBart Van Assche <bvanassche@acm.org>
Sun, 21 Jun 2020 21:38:41 +0000 (14:38 -0700)
committerBart Van Assche <bvanassche@acm.org>
Mon, 22 Jun 2020 02:19:27 +0000 (19:19 -0700)
commit3932f8be718fc4ca3b863c51c0d567821d75c003
tree5d65edaa14c108b11890a22af44d073ab36e50af
parented4d589fb54126bd9b4878ba52dc042c5e8dabb1
arch/arch.h: Introduce atomic_{load_acquire,store_release}()

Implement atomic_load_acquire() and atomic_store_release() with C11
atomic operations. These two primitives will be used in later patches.
This patch increases the minimum requirement for the compiler fio is
built with from C90 to C11.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
arch/arch.h