aboutsummaryrefslogtreecommitdiff
path: root/block/iscsi.c
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2014-01-29 13:03:35 +0100
committerKevin Wolf <kwolf@redhat.com>2014-02-09 09:12:38 +0100
commit5d259fc7da83249a4f78fe32de2bc2874a997a9f (patch)
treede44cc2241c9d08d188cdfbd4ee6d1823ee6efd2 /block/iscsi.c
parent765003db029ed4660a09807958276e251de84fac (diff)
block/iscsi: always fill bs->bl.opt_transfer_length
the opt_transfer_length has nothing to do with logical block provisioning stuff so always copy it from the block limits VPD page. Reported-By: Benoit Canet <benoit@irqsave.net> Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/iscsi.c')
-rw-r--r--block/iscsi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/block/iscsi.c b/block/iscsi.c
index 6f4af72a75..8d0f9667c5 100644
--- a/block/iscsi.c
+++ b/block/iscsi.c
@@ -1330,10 +1330,9 @@ static int iscsi_refresh_limits(BlockDriverState *bs)
}
bs->bl.write_zeroes_alignment = sector_lun2qemu(iscsilun->bl.opt_unmap_gran,
iscsilun);
-
- bs->bl.opt_transfer_length = sector_lun2qemu(iscsilun->bl.opt_xfer_len,
- iscsilun);
}
+ bs->bl.opt_transfer_length = sector_lun2qemu(iscsilun->bl.opt_xfer_len,
+ iscsilun);
return 0;
}