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

Denis V. Lunev posted 3 patches 2 weeks, 3 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261105203752.3169635-1-den@openvz.org
Maintainers: Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>
block.c                      |  7 ++++---
block/io.c                   | 14 +++++++++++---
include/block/block_int-io.h |  8 +++++++-
3 files changed, 22 insertions(+), 7 deletions(-)
[PATCH 0/3] block: fix the size change notification in bdrv_replace_child_bs()
Posted by Denis V. Lunev 2 weeks, 3 days ago
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/auyju4uLIBaCGPKH@redhat.com/

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.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Hanna Reitz <hreitz@redhat.com>
Cc: Eric Blake <eblake@redhat.com>
Cc: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

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
-- 
2.53.0


Re: [PATCH 0/3] block: fix the size change notification in bdrv_replace_child_bs()
Posted by Kevin Wolf 5 days, 17 hours ago
Am 05.11.2026 um 21:37 hat Denis V. Lunev geschrieben:
> 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/auyju4uLIBaCGPKH@redhat.com/
> 
> 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.
> 
> Signed-off-by: Denis V. Lunev <den@openvz.org>
> Cc: Kevin Wolf <kwolf@redhat.com>
> Cc: Hanna Reitz <hreitz@redhat.com>
> Cc: Eric Blake <eblake@redhat.com>
> Cc: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

Thanks, applied to the block branch.

Kevin