Skip to content

block: Handle multiple write requests at once

Kevin Wolf qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 7 repliesIn review
  2. v22 patches 1 replySuperseded
  3. v13 patches 9 repliesSuperseded

Changes in v3 from the cover letter

Handle overlapping requests, add hook for block drivers to merge even more requests.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add bdrv_aio_multiwriteblock.c block.h block_int.h +2 more+230 -04 replies
2/2virtio-blk: Use bdrv_aio_multiwritehw/virtio-blk.c+42 -83 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/2] block: Handle multiple write requests at once

virtio often issues multiple requests in a row, but each one independently. If the block drivers knew all of the requests, they could optimize the way they handle the requests. See the description of patch 1 for how qcow2 can use this to avoid unnecessary writes to the disk.

v2:
The simple request merging code isn't qcow2 specific at all. Enable it for all formats. A cleverer merging policy can later still be implemented in a driver specific way.

v3:
Handle overlapping requests, add hook for block drivers to merge even more requests.

Kevin Wolf (2):
Add bdrv_aio_multiwrite
virtio-blk: Use bdrv_aio_multiwrite

 block.c         |  183 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 block.h         |   15 +++++
 block_int.h     |    6 ++
 cutils.c        |   25 ++++++++
 hw/virtio-blk.c |   50 +++++++++++++---
 qemu-common.h   |    1 +
 6 files changed, 272 insertions(+), 8 deletions(-)