Skip to content

block: Fix backing file child when modifying graph

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5block: Move bdrv_attach_child() calls up the call chainblock.c+21 -201 reply
2/5block: Introduce bdrv_open_child()block.c include/block/block.h+58 -192 replies
3/5block: Introduce bdrv_unref_child()block.c include/block/block.h+22 -21 reply
4/5block: Reorder cleanups in bdrv_close()block.c+8 -61 reply
5/5block: Fix backing file child when modifying graphblock.c include/block/block_int.h+4 -21 reply

Reviews trailers per patch

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

PatchMax Reitz
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-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 for-2.4 0/5] block: Fix backing file child when modifying graph

This series is extracted from my work towards removing bdrv_swap(), which is targeted for 2.5. It contains a fix for dangling pointers when modifying the BDS graph and its dependencies.

I didn't bother to split patches of which only a part is required, nor did I remove references to the future bdrv_swap removal (after all, it will happen, even if the patches will be delayed by the 2.4 freeze).

Specifically, bdrv_open/unref_child() are yet unused in this series; the respective patches are included because of bdrv_attach/detach_child().

Kevin Wolf (5):
block: Move bdrv_attach_child() calls up the call chain
block: Introduce bdrv_open_child()
block: Introduce bdrv_unref_child()
block: Reorder cleanups in bdrv_close()
block: Fix backing file child when modifying graph

 block.c                   | 144 ++++++++++++++++++++++++++++++++--------------
 include/block/block.h     |   7 +++
 include/block/block_int.h |   1 +
 3 files changed, 108 insertions(+), 44 deletions(-)
Signature · 1 line
1.8.3.1