yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-block-backup-disable-copy-offloading-for-backup.patch

ae23c9
From cfdd0c5695fc86b7f016dbe6e40342020a4931a4 Mon Sep 17 00:00:00 2001
ae23c9
From: John Snow <jsnow@redhat.com>
ae23c9
Date: Wed, 18 Jul 2018 22:54:53 +0200
ae23c9
Subject: [PATCH 235/268] block/backup: disable copy offloading for backup
ae23c9
ae23c9
RH-Author: John Snow <jsnow@redhat.com>
ae23c9
Message-id: <20180718225511.14878-18-jsnow@redhat.com>
ae23c9
Patchwork-id: 81417
ae23c9
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 17/35] block/backup: disable copy offloading for backup
ae23c9
Bugzilla: 1207657
ae23c9
RH-Acked-by: Eric Blake <eblake@redhat.com>
ae23c9
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
ae23c9
RH-Acked-by: Fam Zheng <famz@redhat.com>
ae23c9
ae23c9
Downstream only for 2.12.0; there are several upstream fixes that fix
ae23c9
the copy_range support for block/backup that are in 3.0 that we're not
ae23c9
prepared to backport to 2.12.0.
ae23c9
ae23c9
For now, then, hardcode block/backup to use the old bounce buffer method
ae23c9
that works without additional caveats.
ae23c9
ae23c9
Signed-off-by: John Snow <jsnow@redhat.com>
ae23c9
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ae23c9
---
ae23c9
 block/backup.c | 2 +-
ae23c9
 1 file changed, 1 insertion(+), 1 deletion(-)
ae23c9
ae23c9
diff --git a/block/backup.c b/block/backup.c
ae23c9
index d26eeb5..adb3cbd 100644
ae23c9
--- a/block/backup.c
ae23c9
+++ b/block/backup.c
ae23c9
@@ -727,7 +727,7 @@ BlockJob *backup_job_create(const char *job_id, BlockDriverState *bs,
ae23c9
     } else {
ae23c9
         job->cluster_size = MAX(BACKUP_CLUSTER_SIZE_DEFAULT, bdi.cluster_size);
ae23c9
     }
ae23c9
-    job->use_copy_range = true;
ae23c9
+    job->use_copy_range = false;
ae23c9
     job->copy_range_size = MIN_NON_ZERO(blk_get_max_transfer(job->common.blk),
ae23c9
                                         blk_get_max_transfer(job->target));
ae23c9
     job->copy_range_size = MAX(job->cluster_size,
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9