diff options
author | Peter Lieven <pl@kamp.de> | 2014-01-29 13:03:35 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-02-09 09:12:38 +0100 |
commit | 5d259fc7da83249a4f78fe32de2bc2874a997a9f (patch) | |
tree | de44cc2241c9d08d188cdfbd4ee6d1823ee6efd2 /block | |
parent | 765003db029ed4660a09807958276e251de84fac (diff) | |
download | hqemu-5d259fc7da83249a4f78fe32de2bc2874a997a9f.zip hqemu-5d259fc7da83249a4f78fe32de2bc2874a997a9f.tar.gz |
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')
-rw-r--r-- | block/iscsi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index 6f4af72..8d0f966 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; } |