diff options
| author | Vladimir Sementsov-Ogievskiy | 2019-09-16 16:19:10 +0200 |
|---|---|---|
| committer | John Snow | 2019-10-17 23:02:32 +0200 |
| commit | 1e638301604ab8e05c54bee59584c7cd81ebe4d2 (patch) | |
| tree | 133eabe7b6f0321d73c097812b6cdbd13c5e7654 /migration | |
| parent | block/dirty-bitmap: add bs link (diff) | |
| download | qemu-1e638301604ab8e05c54bee59584c7cd81ebe4d2.tar.gz qemu-1e638301604ab8e05c54bee59584c7cd81ebe4d2.tar.xz qemu-1e638301604ab8e05c54bee59584c7cd81ebe4d2.zip | |
block/dirty-bitmap: drop BdrvDirtyBitmap.mutex
mutex field is just a pointer to bs->dirty_bitmap_mutex, so no needs
to store it in BdrvDirtyBitmap when we have bs pointer in it (since
previous patch).
Drop mutex field. Constantly use bdrv_dirty_bitmaps_lock/unlock in
block/dirty-bitmap.c to make it more obvious that it's not per-bitmap
lock. Still, for simplicity, leave bdrv_dirty_bitmap_lock/unlock
functions as an external API.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20190916141911.5255-4-vsementsov@virtuozzo.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'migration')
0 files changed, 0 insertions, 0 deletions
