Skip to content

qcow2_co_write_zeroes and related improvements

Eric Blake qemu-devel 1 version Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest5 patches 7 repliesApplied

Changes in v3 from the cover letter

- patch 1: close to a rewrite, same concept but in fewer lines of code, and with testsuite change to back it up as valid; but keep authorship
- patch 2, 3: unchanged
- patch 4 from original series already applied
- patch 4 in this series is new
- patch 5: rewrite of the original v5 that catches even more cases; claim authorship

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5block: split write_zeroes alwaysblock/io.c tests/qemu-iotests/154.out+29 -191 reply
2/5qcow2: simplify logic in qcow2_co_write_zeroesblock/qcow2.c+5 -180 replies
3/5qcow2: add tracepoints for qcow2_co_write_zeroesblock/qcow2.c trace-events+7 -00 replies
4/5qemu-iotests: Test one more spot for optimizing write_zeroestests/qemu-iotests/154 tests/qemu-iotests/154.out+77 -00 replies
5/5qcow2: Catch more unaligned write_zero into zero clusterblock/qcow2.c tests/qemu-iotests/154.out+27 -285 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchEric BlakeFam ZhengDenis V. Lunev
1/5R-b
2/5R-b
3/5
4/5
5/5R-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 3 reviewers.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/5] qcow2_co_write_zeroes and related improvements

This series improves write_zeroes for qcow2

Since the work conflicts with my proposed patches to switch write_zeroes to a byte-base interface, I figured I'd fix the bugs and get this part nailed first, then rebase my other work on top, rather than making Denis have to do the dirty work.

Changes from v2:
- patch 1: close to a rewrite, same concept but in fewer lines of code, and with testsuite change to back it up as valid; but keep authorship
- patch 2, 3: unchanged
- patch 4 from original series already applied
- patch 4 in this series is new
- patch 5: rewrite of the original v5 that catches even more cases; claim authorship

[hmm, maybe I should treat 1 and 5 the same on whether to leave authorship unchanged or just credit Denis for the original idea]

Denis V. Lunev (3):
block: split write_zeroes always
qcow2: simplify logic in qcow2_co_write_zeroes
qcow2: add tracepoints for qcow2_co_write_zeroes

Eric Blake (2):
qemu-iotests: Test one more spot for optimizing write_zeroes
qcow2: Catch more unaligned write_zero into zero cluster

 block/io.c                 | 30 ++++++++++++---------
 block/qcow2.c              | 67 ++++++++++++++++++++--------------------------
 tests/qemu-iotests/154     | 40 +++++++++++++++++++++++++++
 tests/qemu-iotests/154.out | 55 ++++++++++++++++++++++++++++++++-----
 trace-events               |  2 ++
 5 files changed, 137 insertions(+), 57 deletions(-)
Signature · 1 line
2.5.5