mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
block: access write_gen with atomics
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20170605123908.18777-13-pbonzini@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
This commit is contained in:
parent
f7946da274
commit
47fec59941
3 changed files with 5 additions and 5 deletions
|
@ -612,7 +612,6 @@ struct BlockDriverState {
|
|||
QLIST_HEAD(, BdrvTrackedRequest) tracked_requests;
|
||||
CoQueue flush_queue; /* Serializing flush queue */
|
||||
bool active_flush_req; /* Flush request in flight? */
|
||||
unsigned int write_gen; /* Current data generation */
|
||||
unsigned int flushed_gen; /* Flushed write generation */
|
||||
|
||||
QLIST_HEAD(, BdrvDirtyBitmap) dirty_bitmaps;
|
||||
|
@ -647,6 +646,7 @@ struct BlockDriverState {
|
|||
|
||||
/* Accessed with atomic ops. */
|
||||
int quiesce_counter;
|
||||
unsigned int write_gen; /* Current data generation */
|
||||
};
|
||||
|
||||
struct BlockBackendRootState {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue