From: Vladimir Sementsov-Ogievskiy Date: Sat, 16 Jan 2021 21:47:00 +0000 (+0300) Subject: qapi: backup: disable copy_range by default X-Git-Tag: v6.0.0-rc0~125^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a30f663d4c0b3c45a544d541e0c4e214b2473a1;p=thirdparty%2Fqemu.git qapi: backup: disable copy_range by default Further commit will add a benchmark (scripts/simplebench/bench-backup.py), which will show that backup works better with async parallel requests (previous commit) and disabled copy_range. So, let's disable copy_range by default. Note: the option was added several commits ago with default to true, to follow old behavior (the feature was enabled unconditionally), and only now we are going to change the default behavior. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz Message-Id: <20210116214705.822267-19-vsementsov@virtuozzo.com> Signed-off-by: Max Reitz --- diff --git a/blockdev.c b/blockdev.c index 25aaacf2535..93417f63021 100644 --- a/blockdev.c +++ b/blockdev.c @@ -2829,7 +2829,7 @@ static BlockJob *do_backup_common(BackupCommon *backup, { BlockJob *job = NULL; BdrvDirtyBitmap *bmap = NULL; - BackupPerf perf = { .use_copy_range = true, .max_workers = 64 }; + BackupPerf perf = { .max_workers = 64 }; int job_flags = JOB_DEFAULT; if (!backup->has_speed) { diff --git a/qapi/block-core.json b/qapi/block-core.json index abcd41ed630..9f555d5c1d8 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1377,7 +1377,7 @@ # Optional parameters for backup. These parameters don't affect # functionality, but may significantly affect performance. # -# @use-copy-range: Use copy offloading. Default true. +# @use-copy-range: Use copy offloading. Default false. # # @max-workers: Maximum number of parallel requests for the sustained background # copying process. Doesn't influence copy-before-write operations.