Skip to content

block: BdrvChildRole.drained_begin/end fixes

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: Introduce bdrv_replace_child()block.c+20 -61 reply
2/4block: Make bdrv_drain() use bdrv_drained_begin/end()block/io.c+33 -361 reply
3/4block: Fix reconfiguring graph with drained nodesblock.c block/block-backend.c include/block/block_int.h+21 -91 reply
4/4block: Propagate .drained_begin/end callbacksblock.c+19 -11 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BlakeFam Zheng
SeriesR-b
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] block: BdrvChildRole.drained_begin/end fixes

While working on the series that converts block jobs to using a separate BlockBackend, I noticed that I need to do some drain fixes first. So here they are.

Patches 1 and 2 are just preparation, patches 3 and 4 are the actual fixes.

Kevin Wolf (4):
block: Introduce bdrv_replace_child()
block: Make bdrv_drain() use bdrv_drained_begin/end()
block: Fix reconfiguring graph with drained nodes
block: Propagate .drained_begin/end callbacks

 block.c                   | 58 +++++++++++++++++++++++++++++++++------
 block/block-backend.c     |  9 ++++---
 block/io.c                | 69 +++++++++++++++++++++++------------------------
 include/block/block_int.h |  3 ++-
 4 files changed, 90 insertions(+), 49 deletions(-)
Signature · 1 line
1.8.3.1