diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-08-24 11:38:35 +0300 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2021-09-01 14:03:47 +0200 |
commit | 7ddbce2dec96f1d881db0a81541072a23d2b89b4 (patch) | |
tree | 19bf36b5b9bfa854b25eeea943732e77e943c896 /block/rbd.c | |
parent | 3c1e63277e0e8528967ee179b63ef214d3a9a683 (diff) | |
download | qemu-7ddbce2dec96f1d881db0a81541072a23d2b89b4.zip qemu-7ddbce2dec96f1d881db0a81541072a23d2b89b4.tar.gz qemu-7ddbce2dec96f1d881db0a81541072a23d2b89b4.tar.bz2 |
block/copy-before-write: bdrv_cbw_append(): replace child at last
Refactor the function to replace child at last. Thus we don't need to
revert it and code is simplified.
block-copy state initialization being done before replacing the child
doesn't need any drained section.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20210824083856.17408-14-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'block/rbd.c')
0 files changed, 0 insertions, 0 deletions