From: Eric Blake <eblake@redhat.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>,
John Snow <jsnow@redhat.com>,
Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Subject: Re: [PATCH v4 09/12] block/block-copy: merge the two backup scan steps into block_copy_prescan()
Date: Mon, 2 Nov 2026 21:26:06 -0600 [thread overview]
Message-ID: <aulT1xOoSYFPdsI7@redhat.com> (raw)
In-Reply-To: <20261030010613.1612771-10-den@openvz.org>
On Fri, Oct 30, 2026 at 02:06:09AM +0100, Denis V. Lunev wrote:
> From: Denis V. Lunev <den@openvz.org>
>
> block_copy_reset_unallocated() and block_copy_calculate_zero_bitmap()
> are both one step of the same scan and differ only in what they do with
> the answer. Fold them into block_copy_prescan(), which drops unallocated
> clusters from copy_bitmap while skip_unallocated is set, so
> backup_scan_source() loses its per-mode branch.
>
> sync=top now walks the dirty areas the way full and bitmap do, so it no
> longer queries what copy-before-write has already copied during the
> scan. A failed query still fails sync=top, as nothing else can tell
> which clusters to skip, and still leaves the area to be copied as data
> otherwise.
>
> Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> Signed-off-by: Denis V. Lunev <den@openvz.org>
> CC: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> CC: John Snow <jsnow@redhat.com>
> CC: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
> ---
> block/backup.c | 7 +----
> block/block-copy.c | 63 ++++++++++++++------------------------
> include/block/block-copy.h | 9 ++----
> 3 files changed, 27 insertions(+), 52 deletions(-)
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization: qemu.org | libguestfs.org
next prev parent reply other threads:[~2026-11-03 3:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-30 1:06 [PATCH v4 00/12] block: cheaper zero handling in backup and commit Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 01/12] block/commit: pass BDRV_WANT_PRECISE to block-status Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 02/12] iotests/040: cover large and fragmented commit runs Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 03/12] block/commit: batch block-status queries Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 04/12] iotests/124: cover backup of zero clusters and holes Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 05/12] block/block-copy: extract block_copy_set_task_method() Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 06/12] block/block-copy: track known-zero source clusters Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 07/12] block/backup: pre-fill zero_bitmap for full/bitmap Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 08/12] block/block-copy: rename block_copy_is_cluster_allocated() Denis V. Lunev
2026-10-30 1:06 ` [PATCH v4 09/12] block/block-copy: merge the two backup scan steps into block_copy_prescan() Denis V. Lunev
2026-11-03 3:26 ` Eric Blake [this message]
2026-10-30 1:06 ` [PATCH v4 10/12] block/block-copy: replace zero_bitmap_valid with scan_done Denis V. Lunev
2026-11-03 3:27 ` Eric Blake
2026-10-30 1:06 ` [PATCH v4 11/12] util/co-shared-resource: skip the mutex for an empty request Denis V. Lunev
2026-11-03 3:32 ` Eric Blake
2026-10-30 1:06 ` [PATCH v4 12/12] block/block-copy: coalesce write-zeroes tasks Denis V. Lunev
2026-11-03 3:37 ` Eric Blake
2026-11-02 16:26 ` [PATCH v4 00/12] block: cheaper zero handling in backup and commit Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aulT1xOoSYFPdsI7@redhat.com \
--to=eblake@redhat.com \
--cc=andrey.drobyshev@virtuozzo.com \
--cc=den@openvz.org \
--cc=jsnow@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@yandex-team.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.