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

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