From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: qemu-block@nongnu.org
Cc: kwolf@redhat.com, vsementsov@virtuozzo.com,
wencongyang2@huawei.com, xiechanglong.d@gmail.com,
qemu-devel@nongnu.org, armbru@redhat.com, den@openvz.org,
mreitz@redhat.com, jsnow@redhat.com
Subject: [PATCH v14 00/14] backup-top filter driver for backup
Date: Thu, 26 Sep 2019 13:26:00 +0300 [thread overview]
Message-ID: <20190926102614.28999-1-vsementsov@virtuozzo.com> (raw)
Hi all!
These series introduce backup-top driver. It's a filter-node, which
do copy-before-write operation. Mirror uses filter-node for handling
guest writes, let's move to filter-node (from write-notifiers) for
backup too.
v13 is queued in Max's branch, but I understand that new range locks
don't work in backup case. So, I've to resend.
v14: Drop range locks, keep old good in-flight requests waiting
12: new patch
14: use old request-waiting scheme instead of range locks
Vladimir Sementsov-Ogievskiy (14):
block/backup: fix max_transfer handling for copy_range
block/backup: fix backup_cow_with_offload for last cluster
block/backup: split shareable copying part from backup_do_cow
block/backup: improve comment about image fleecing
block/backup: introduce BlockCopyState
block/backup: fix block-comment style
block: move block_copy from block/backup.c to separate file
block: teach bdrv_debug_breakpoint skip filters with backing
iotests: prepare 124 and 257 bitmap querying for backup-top filter
iotests: 257: drop unused Drive.device field
iotests: 257: drop device_add
block: move in-flight requests handling from backup to block-copy
block: introduce backup-top filter driver
block/backup: use backup-top instead of write notifiers
qapi/block-core.json | 8 +-
block/backup-top.h | 37 ++
include/block/block-copy.h | 92 +++++
include/block/block_int.h | 1 +
block.c | 34 +-
block/backup-top.c | 240 ++++++++++++
block/backup.c | 440 ++++-----------------
block/block-copy.c | 370 ++++++++++++++++++
block/replication.c | 2 +-
blockdev.c | 1 +
block/Makefile.objs | 3 +
block/trace-events | 14 +-
tests/qemu-iotests/056 | 8 +-
tests/qemu-iotests/124 | 83 ++--
tests/qemu-iotests/257 | 91 ++---
tests/qemu-iotests/257.out | 714 ++++++++++++++--------------------
tests/qemu-iotests/iotests.py | 27 ++
17 files changed, 1256 insertions(+), 909 deletions(-)
create mode 100644 block/backup-top.h
create mode 100644 include/block/block-copy.h
create mode 100644 block/backup-top.c
create mode 100644 block/block-copy.c
--
2.21.0
next reply other threads:[~2019-09-26 10:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 10:26 Vladimir Sementsov-Ogievskiy [this message]
2019-09-26 10:26 ` [PATCH v14 01/14] block/backup: fix max_transfer handling for copy_range Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 02/14] block/backup: fix backup_cow_with_offload for last cluster Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 03/14] block/backup: split shareable copying part from backup_do_cow Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 04/14] block/backup: improve comment about image fleecing Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 05/14] block/backup: introduce BlockCopyState Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 06/14] block/backup: fix block-comment style Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 07/14] block: move block_copy from block/backup.c to separate file Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 08/14] block: teach bdrv_debug_breakpoint skip filters with backing Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 09/14] iotests: prepare 124 and 257 bitmap querying for backup-top filter Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 10/14] iotests: 257: drop unused Drive.device field Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 11/14] iotests: 257: drop device_add Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 12/14] block: move in-flight requests handling from backup to block-copy Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 13/14] block: introduce backup-top filter driver Vladimir Sementsov-Ogievskiy
2019-09-26 10:26 ` [PATCH v14 14/14] block/backup: use backup-top instead of write notifiers Vladimir Sementsov-Ogievskiy
2019-09-26 10:29 ` Vladimir Sementsov-Ogievskiy
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=20190926102614.28999-1-vsementsov@virtuozzo.com \
--to=vsementsov@virtuozzo.com \
--cc=armbru@redhat.com \
--cc=den@openvz.org \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=wencongyang2@huawei.com \
--cc=xiechanglong.d@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).