[Qemu-devel] [PATCH v2 0/3] proper locking on bitmap add/remove paths

Vladimir Sementsov-Ogievskiy posted 3 patches 4 years, 6 months ago
Test docker-clang@ubuntu passed
Test FreeBSD passed
Test checkpatch passed
Test docker-quick@centos7 passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20190911150054.90936-1-vsementsov@virtuozzo.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, John Snow <jsnow@redhat.com>, Max Reitz <mreitz@redhat.com>, Markus Armbruster <armbru@redhat.com>, Fam Zheng <fam@euphon.net>
There is a newer version of this series
block/qcow2.h                |  14 ++---
include/block/block_int.h    |  14 ++---
include/block/dirty-bitmap.h |   5 +-
block.c                      |  22 -------
block/dirty-bitmap.c         | 119 +++++++++++++++++++++++++++++++++--
block/qcow2-bitmap.c         |  38 ++++++-----
block/qcow2.c                |   5 +-
blockdev.c                   |  28 +++------
8 files changed, 164 insertions(+), 81 deletions(-)
[Qemu-devel] [PATCH v2 0/3] proper locking on bitmap add/remove paths
Posted by Vladimir Sementsov-Ogievskiy 4 years, 6 months ago
We need to lock qcow2 mutex on accessing in-image metadata, especially
on updating this metadata. Let's implement it.

v2:

fix uninitialized variable in 03, found by Patchew

Vladimir Sementsov-Ogievskiy (3):
  block: move bdrv_can_store_new_dirty_bitmap to block/dirty-bitmap.c
  block/dirty-bitmap: return int from
    bdrv_remove_persistent_dirty_bitmap
  block/qcow2: proper locking on bitmap add/remove paths

 block/qcow2.h                |  14 ++---
 include/block/block_int.h    |  14 ++---
 include/block/dirty-bitmap.h |   5 +-
 block.c                      |  22 -------
 block/dirty-bitmap.c         | 119 +++++++++++++++++++++++++++++++++--
 block/qcow2-bitmap.c         |  38 ++++++-----
 block/qcow2.c                |   5 +-
 blockdev.c                   |  28 +++------
 8 files changed, 164 insertions(+), 81 deletions(-)

-- 
2.18.0