examples/vhost_blk: replace SMP barrier with thread fence
authorJoyce Kong <joyce.kong@arm.com>
Mon, 21 Dec 2020 15:50:27 +0000 (23:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 17:07:55 +0000 (18:07 +0100)
commit96d1d898dcbc4319d8416b222aa6ba081e605823
treec69312c63200638d231db6220c18d22547aa53c2
parent111cf3f4971256e0322b298ac4026f59197ea6e3
examples/vhost_blk: replace SMP barrier with thread fence

Simply replace the rte_smp_mb barriers with SEQ_CST atomic thread fence,
if there is no load/store operations.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
examples/vhost_blk/vhost_blk.c