diff options
| author | Paolo Bonzini | 2017-06-05 14:38:51 +0200 |
|---|---|---|
| committer | Fam Zheng | 2017-06-16 01:55:00 +0200 |
| commit | 414c2ec3585408a5c7b458664db180e91480bb03 (patch) | |
| tree | b03c368b9cfec715824ed64ed83e48ee1b68d0b5 /include/block | |
| parent | block: access copy_on_read with atomic ops (diff) | |
| download | qemu-414c2ec3585408a5c7b458664db180e91480bb03.tar.gz qemu-414c2ec3585408a5c7b458664db180e91480bb03.tar.xz qemu-414c2ec3585408a5c7b458664db180e91480bb03.zip | |
block: access quiesce_counter with atomic ops
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20170605123908.18777-3-pbonzini@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include/block')
| -rw-r--r-- | include/block/block_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 49f2ebb95a..1824e0e135 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -637,6 +637,7 @@ struct BlockDriverState { /* do we need to tell the quest if we have a volatile write cache? */ int enable_write_cache; + /* Accessed with atomic ops. */ int quiesce_counter; }; |
