block/archipelago: Use QEMU atomic builtins
commit072f9ac44aac54ee9ac006e8b42841abfde48a8b
authorChrysostomos Nanakos <cnanakos@grnet.gr>
Tue, 2 Sep 2014 12:41:34 +0000 (2 15:41 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 8 Sep 2014 10:12:43 +0000 (8 11:12 +0100)
tree917eda3df47e00cf446b6fc283fad3f03a600beb
parent3ba6796d080a90440573ef29d657e4902be7e238
block/archipelago: Use QEMU atomic builtins

Replace __sync builtins with ones provided by QEMU
for atomic operations.

Special thanks goes to Paolo Bonzini for his refactoring
suggestion in order to use the already existing atomic builtins
interface.

Signed-off-by: Chrysostomos Nanakos <cnanakos@grnet.gr>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/archipelago.c