Skip to content

block/mirror: Add active-sync mirroring

Max Reitz qemu-devel 5 versions – Applied

Status from this message: Applied to my block branch after deciding (with Kevin) that changing

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest14 patches 4 repliesApplied
  2. v413 patches 9 repliesSuperseded
  3. v316 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v216 patches18 repliesSuperseded
v118 patches45 repliesSuperseded

Changes in v5 from the cover letter

- Patch 3: Rebase conflict with Kevin’s job series (kept R-bs because it’s just a change in removed code (and a trivial one on top))
- Patch 6: Removed completely unused BdrvChildList typedef [Berto] (kept R-bs again because this isn’t even a functional change...)
- Patch 11: Added, because jobs are no longer supposed to have direct access to their progress info, but we need some way of just adding an offset to the progress end value in the next patch
- Patch 12:
- s/2.12/3.0/ [Eric]
- Use job_progress_*() functions
(kept R-b because I think those to be very obvious changes)
- Patch 13: s/2.13/3.0/ (kept R-b because come on)
- Patch 14:
- s/2017/2018/ (hey, why not)
- qmp_to_opts() has been moved to VM
(kept R-bs because I consider those to be trivial or obvious changes, respectively)

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/14block/mirror: Pull out mirror_perform()block/mirror.c+29 -220 replies
2/14block/mirror: Convert to coroutinesblock/mirror.c+90 -622 replies
3/14block/mirror: Use CoQueue to wait on in-flight opsblock/mirror.c+23 -110 replies
4/14block/mirror: Wait for in-flight op conflictsblock/mirror.c+84 -180 replies
5/14block/mirror: Use source as a BdrvChildblock/mirror.c+6 -80 replies
6/14block: Generalize should_update_child() ruleblock.c+34 -100 replies
7/14hbitmap: Add @advance param to hbitmap_iter_next()block/backup.c block/dirty-bitmap.c include/qemu/hbitmap.h +2 more+26 -190 replies
8/14test-hbitmap: Add non-advancing iter_next teststests/test-hbitmap.c+24 -120 replies
9/14block/dirty-bitmap: Add bdrv_dirty_iter_next_areablock/dirty-bitmap.c include/block/dirty-bitmap.h+57 -00 replies
10/14block/mirror: Add MirrorBDSOpaqueblock/mirror.c+12 -00 replies
11/14job: Add job_progress_increase_remaining()include/qemu/job.h job.c+20 -01 reply
12/14block/mirror: Add active mirroringblock/mirror.c qapi/block-core.json+265 -50 replies
13/14block/mirror: Add copy mode QAPI interfaceblock/mirror.c blockdev.c include/block/block_int.h +1 more+27 -90 replies
14/14iotests: Add test for active mirroringtests/qemu-iotests/151 tests/qemu-iotests/151.out tests/qemu-iotests/group+126 -00 replies

Reviews trailers per patch

All 14 patches have a Reviewed-by or Acked-by.

PatchFam ZhengVladimir Sementsov-OgievskiyJeff CodyAlberto GarciaJohn SnowKevin Wolf
1/14R-b R-b R-b R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b R-b
6/14R-b R-b
7/14R-b R-b
8/14R-b R-b
9/14R-b R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 00/14] block/mirror: Add active-sync mirroring

This series implements an active and synchronous mirroring mode.

You can read the cover letter of v4 here (I don’t like to copy-paste that because people who reviewed previous versions know it already and this saves them from having to look out for potential changes):

http://lists.nongnu.org/archive/html/qemu-block/2018-04/msg00185.html

v5:
- Patch 3: Rebase conflict with Kevin’s job series (kept R-bs because it’s just a change in removed code (and a trivial one on top))
- Patch 6: Removed completely unused BdrvChildList typedef [Berto] (kept R-bs again because this isn’t even a functional change...)
- Patch 11: Added, because jobs are no longer supposed to have direct access to their progress info, but we need some way of just adding an offset to the progress end value in the next patch
- Patch 12:
- s/2.12/3.0/ [Eric]
- Use job_progress_*() functions
(kept R-b because I think those to be very obvious changes)
- Patch 13: s/2.13/3.0/ (kept R-b because come on)
- Patch 14:
- s/2017/2018/ (hey, why not)
- qmp_to_opts() has been moved to VM
(kept R-bs because I consider those to be trivial or obvious changes, respectively)

git-backport-diff to v4:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/14:[----] [--] 'block/mirror: Pull out mirror_perform()' 002/14:[----] [--] 'block/mirror: Convert to coroutines' 003/14:[0002] [FC] 'block/mirror: Use CoQueue to wait on in-flight ops' 004/14:[----] [-C] 'block/mirror: Wait for in-flight op conflicts' 005/14:[----] [-C] 'block/mirror: Use source as a BdrvChild' 006/14:[0002] [FC] 'block: Generalize should_update_child() rule' 007/14:[----] [--] 'hbitmap: Add @advance param to hbitmap_iter_next()' 008/14:[----] [--] 'test-hbitmap: Add non-advancing iter_next tests' 009/14:[----] [--] 'block/dirty-bitmap: Add bdrv_dirty_iter_next_area' 010/14:[----] [-C] 'block/mirror: Add MirrorBDSOpaque' 011/14:[down] 'job: Add job_progress_increase_remaining()' 012/14:[0006] [FC] 'block/mirror: Add active mirroring' 013/14:[0004] [FC] 'block/mirror: Add copy mode QAPI interface' 014/14:[0006] [FC] 'iotests: Add test for active mirroring'

Max Reitz (14):
block/mirror: Pull out mirror_perform() block/mirror: Convert to coroutines block/mirror: Use CoQueue to wait on in-flight ops block/mirror: Wait for in-flight op conflicts block/mirror: Use source as a BdrvChild
block: Generalize should_update_child() rule
hbitmap: Add @advance param to hbitmap_iter_next()
test-hbitmap: Add non-advancing iter_next tests block/dirty-bitmap: Add bdrv_dirty_iter_next_area block/mirror: Add MirrorBDSOpaque
job: Add job_progress_increase_remaining() block/mirror: Add active mirroring block/mirror: Add copy mode QAPI interface
iotests: Add test for active mirroring

 qapi/block-core.json         |  29 +-
 include/block/block_int.h    |   4 +-
 include/block/dirty-bitmap.h |   2 +
 include/qemu/hbitmap.h       |   5 +-
 include/qemu/job.h           |  15 +
 block.c                      |  44 ++-
 block/backup.c               |   2 +-
 block/dirty-bitmap.c         |  57 +++-
 block/mirror.c               | 605 ++++++++++++++++++++++++++++-------
 blockdev.c                   |   9 +-
 job.c                        |   5 +
 tests/test-hbitmap.c         |  38 ++-
 util/hbitmap.c               |  10 +-
 tests/qemu-iotests/151       | 120 +++++++
 tests/qemu-iotests/151.out   |   5 +
 tests/qemu-iotests/group     |   1 +
 16 files changed, 799 insertions(+), 152 deletions(-)
 create mode 100755 tests/qemu-iotests/151
 create mode 100644 tests/qemu-iotests/151.out
Signature · 1 line
2.17.1