cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-scsi-disk-fix-WRITE-SAME-with-large-non-zero-payload.patch.patch.patch

0a122b
From 7239bc0ab3b7be4dabb0e65a19c0618ce0a6a171 Mon Sep 17 00:00:00 2001
0a122b
Message-Id: <7239bc0ab3b7be4dabb0e65a19c0618ce0a6a171.1389014116.git.minovotn@redhat.com>
0a122b
In-Reply-To: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
References: <c8cc35838d42aa286242772d97e3a9be7bb786ba.1389014116.git.minovotn@redhat.com>
0a122b
From: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Date: Mon, 9 Dec 2013 14:09:26 +0100
0a122b
Subject: [PATCH 38/50] scsi-disk: fix WRITE SAME with large non-zero payload
0a122b
0a122b
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
0a122b
Message-id: <1386598178-11845-41-git-send-email-pbonzini@redhat.com>
0a122b
Patchwork-id: 56077
0a122b
O-Subject: [RHEL 7.0 qemu-kvm PATCH 40/52] scsi-disk: fix WRITE SAME with large non-zero payload
0a122b
Bugzilla: 1007815
0a122b
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
0a122b
RH-Acked-by: Fam Zheng <famz@redhat.com>
0a122b
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
0a122b
0a122b
Due to a thinko in the patch that implemented WRITE SAME.
0a122b
0a122b
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
0a122b
(cherry picked from commit 98e33f1b0eff84d9538cf957dde48c3f67f6f9d8)
0a122b
---
0a122b
 hw/scsi/scsi-disk.c | 2 +-
0a122b
 1 file changed, 1 insertion(+), 1 deletion(-)
0a122b
0a122b
Signed-off-by: Michal Novotny <minovotn@redhat.com>
0a122b
---
0a122b
 hw/scsi/scsi-disk.c | 2 +-
0a122b
 1 file changed, 1 insertion(+), 1 deletion(-)
0a122b
0a122b
diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c
0a122b
index efadfc0..c44f159 100644
0a122b
--- a/hw/scsi/scsi-disk.c
0a122b
+++ b/hw/scsi/scsi-disk.c
0a122b
@@ -1626,7 +1626,7 @@ static void scsi_write_same_complete(void *opaque, int ret)
0a122b
         bdrv_acct_start(s->qdev.conf.bs, &r->acct, data->iov.iov_len, BDRV_ACCT_WRITE);
0a122b
         r->req.aiocb = bdrv_aio_writev(s->qdev.conf.bs, data->sector,
0a122b
                                        &data->qiov, data->iov.iov_len / 512,
0a122b
-                                       scsi_write_same_complete, r);
0a122b
+                                       scsi_write_same_complete, data);
0a122b
         return;
0a122b
     }
0a122b
 
0a122b
-- 
0a122b
1.7.11.7
0a122b