fio: Use atomic_load_acquire() and atomic_store_release() where appropriate
authorBart Van Assche <bvanassche@acm.org>
Sun, 21 Jun 2020 20:55:04 +0000 (13:55 -0700)
committerBart Van Assche <bvanassche@acm.org>
Mon, 22 Jun 2020 02:19:27 +0000 (19:19 -0700)
commit0337173e060e5e6d476312d3780cbb7c39604ed6
tree5d68e3216365173b4af245c8559d1d57cd68f105
parent9e26aff95394142b8d2074e0f415140d2bbea145
fio: Use atomic_load_acquire() and atomic_store_release() where appropriate

The write_barrier() in io_completed() and also the read barriers in
verify.c are misplaced: the write barrier should occur before the flags
update instead of after and the read barriers should occur after the flags
read instead of before. Fix this by using atomic_{load_acquire,
store_release}() instead of read and write barriers.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
io_u.c
verify.c