|
|
0a122b |
From 5e38ead2b13d0cf9477aacee2d75432fe0f2176d Mon Sep 17 00:00:00 2001
|
|
|
0a122b |
Message-Id: <5e38ead2b13d0cf9477aacee2d75432fe0f2176d.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:35 +0100
|
|
|
0a122b |
Subject: [PATCH 47/50] block/iscsi: set bs->bl.opt_transfer_length
|
|
|
0a122b |
|
|
|
0a122b |
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
0a122b |
Message-id: <1386598178-11845-50-git-send-email-pbonzini@redhat.com>
|
|
|
0a122b |
Patchwork-id: 56086
|
|
|
0a122b |
O-Subject: [RHEL 7.0 qemu-kvm PATCH 49/52] block/iscsi: set bs->bl.opt_transfer_length
|
|
|
0a122b |
Bugzilla: 1039557
|
|
|
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 |
From: Peter Lieven <pl@kamp.de>
|
|
|
0a122b |
|
|
|
0a122b |
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
0a122b |
Signed-off-by: Peter Lieven <pl@kamp.de>
|
|
|
0a122b |
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
0a122b |
(cherry picked from commit 7572ddc8db114d8c437a97ca3eaedab397f66cda)
|
|
|
0a122b |
---
|
|
|
0a122b |
block/iscsi.c | 3 +++
|
|
|
0a122b |
1 file changed, 3 insertions(+)
|
|
|
0a122b |
|
|
|
0a122b |
Signed-off-by: Michal Novotny <minovotn@redhat.com>
|
|
|
0a122b |
---
|
|
|
0a122b |
block/iscsi.c | 3 +++
|
|
|
0a122b |
1 file changed, 3 insertions(+)
|
|
|
0a122b |
|
|
|
0a122b |
diff --git a/block/iscsi.c b/block/iscsi.c
|
|
|
0a122b |
index 94c5af8..fce909b 100644
|
|
|
0a122b |
--- a/block/iscsi.c
|
|
|
0a122b |
+++ b/block/iscsi.c
|
|
|
0a122b |
@@ -1459,6 +1459,9 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
|
|
|
0a122b |
}
|
|
|
0a122b |
bs->bl.write_zeroes_alignment = sector_lun2qemu(iscsilun->bl.opt_unmap_gran,
|
|
|
0a122b |
iscsilun);
|
|
|
0a122b |
+
|
|
|
0a122b |
+ bs->bl.opt_transfer_length = sector_lun2qemu(iscsilun->bl.opt_xfer_len,
|
|
|
0a122b |
+ iscsilun);
|
|
|
0a122b |
}
|
|
|
0a122b |
|
|
|
0a122b |
#if defined(LIBISCSI_FEATURE_NOP_COUNTER)
|
|
|
0a122b |
--
|
|
|
0a122b |
1.7.11.7
|
|
|
0a122b |
|