Skip to content

RFC quorum: Implement .bdrv_co_preadv/pwritev()

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8coroutine: Introduce qemu_coroutine_enter_if_inactive()include/qemu/coroutine.h util/qemu-coroutine.c+14 -02 replies
2/8quorum: Remove s from quorum_aio_get() argumentsblock/quorum.c+4 -53 replies
3/8quorum: Implement .bdrv_co_readv/writevblock/quorum.c+117 -772 replies
4/8quorum: Do cleanup in caller coroutineblock/quorum.c+9 -62 replies
5/8quorum: Inline quorum_aio_cb()block/quorum.c+51 -611 reply
6/8quorum: Avoid bdrv_aio_writev() for rewritesblock/quorum.c+33 -196 replies
7/8quorum: Implement .bdrv_co_preadv/pwritev()block/quorum.c+33 -424 replies
8/8quorum: Inline quorum_fifo_aio_cb()block/quorum.c+13 -291 reply

Reviews trailers per patch

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

PatchEric BlakePaolo BonziniAlberto Garcia
1/8R-b R-b
2/8R-b R-b R-b
3/8
4/8R-b
5/8R-b
6/8
7/8
8/8R-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 v1 thread

Cover letter [Qemu-devel] [RFC PATCH 0/8] quorum: Implement .bdrv_co_preadv/pwritev()

This is part of a series that I'm working on and that aims to remove the bdrv_aio_*() emulation in io.c. blkdebug and blkverify were easy, but for quorum I need a few more patches, so I'm sending this out as an RFC while I continue work on the rest (QED, and then possibly some polishing).

After the series, quorum doesn't only use the preferred interfaces, but the code becomes a little easier to follow and byte granularity requests are supported. There is probably still some potential for additional cleanups in a follow-up series, but this should already be enough to be worth merging.

Kevin Wolf (8):
coroutine: Introduce qemu_coroutine_enter_if_inactive()
quorum: Remove s from quorum_aio_get() arguments
quorum: Implement .bdrv_co_readv/writev
quorum: Do cleanup in caller coroutine
quorum: Inline quorum_aio_cb()
quorum: Avoid bdrv_aio_writev() for rewrites
quorum: Implement .bdrv_co_preadv/pwritev()
quorum: Inline quorum_fifo_aio_cb()

 block/quorum.c           | 373 +++++++++++++++++++++++++----------------------
 include/qemu/coroutine.h |   6 +
 util/qemu-coroutine.c    |   8 +
 3 files changed, 211 insertions(+), 176 deletions(-)
Signature · 1 line
1.8.3.1