mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
block: protect modification of dirty bitmaps with a mutex
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20170605123908.18777-17-pbonzini@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
This commit is contained in:
parent
c0bad49946
commit
b64bd51efa
5 changed files with 95 additions and 25 deletions
|
@ -611,8 +611,8 @@ struct BlockDriverState {
|
|||
|
||||
/* Writing to the list requires the BQL _and_ the dirty_bitmap_mutex.
|
||||
* Reading from the list can be done with either the BQL or the
|
||||
* dirty_bitmap_mutex. Modifying a bitmap requires the AioContext
|
||||
* lock. */
|
||||
* dirty_bitmap_mutex. Modifying a bitmap only requires
|
||||
* dirty_bitmap_mutex. */
|
||||
QemuMutex dirty_bitmap_mutex;
|
||||
QLIST_HEAD(, BdrvDirtyBitmap) dirty_bitmaps;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue