Skip to content

block: fix the size change notification in bdrv_replace_child_bs()

Denis V. Lunev 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. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3block: read the old child length after draining in bdrv_replace_child_bs()block.c+3 -20 replies
2/3block: add bdrv_child_notify_resize() to notify a single parentblock/io.c include/block/block_int-io.h+20 -30 replies
3/3block: notify only the replaced child in bdrv_replace_child_bs()block.c include/block/block_int-io.h+1 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] block: fix the size change notification in bdrv_replace_child_bs()

These address Kevin's review of the series which went in through Eric's block pull as 8b267376df87..28fafb3147f5:
https://lore.kernel.org/qemu-devel/[email protected]/

Tested with a local qtest, not included: with a second scsi-hd sharing the new node, master reports CAPACITY DATA HAS CHANGED to that device after qom-set on the first one, and with patch 3 it does not.

Cc Kevin Wolf <[email protected]>
Cc Hanna Reitz <[email protected]>
Cc Eric Blake <[email protected]>
Cc Philippe Mathieu-Daudé <[email protected]>

Denis V. Lunev (3):
block: read the old child length after draining in
bdrv_replace_child_bs()
block: add bdrv_child_notify_resize() to notify a single parent
block: notify only the replaced child in bdrv_replace_child_bs()

 block.c                      |  7 ++++---
 block/io.c                   | 14 +++++++++++---
 include/block/block_int-io.h |  8 +++++++-
 3 files changed, 22 insertions(+), 7 deletions(-)

base-commit: f71afb409a87c4ecd0f9d63a5963eb645dfab780

Signature · 1 line
2.53.0