block/iscsi: always fill bs->bl.opt_transfer_length
A message that is not in the archive (sent off-list or not yet received): [email protected]
Benoît Canet
Reviewed-by Benoit CanetQuoted 30 lines · Peter Lieven
the
opt_transfer_lengthhas nothing to do with logical block provisioning stuff so always copy it from the block limits VPD page.Reported-By Benoit Canet <[email protected]>Signed-off-by Peter Lieven <[email protected]>--- block/iscsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)block/iscsi.c +2
-3@@ -1331,10 +1331,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 ; }Signature · 1 line
1.7.9.5
Reviewed-by Benoit Canet <[email protected]>
Kevin Wolf
AppliedAm 29.01.2014 um 16:36 hat Benoît Canet geschrieben:
Quoted 28 lines · Peter Lieven
Quoted 27 lines
the
opt_transfer_lengthhas nothing to do with logical block provisioning stuff so always copy it from the block limits VPD page.Reported-By Benoit Canet <[email protected]>Signed-off-by Peter Lieven <[email protected]>--- block/iscsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)block/iscsi.c +2
-3@@ -1331,10 +1331,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 ; }
Quoted 4 lines
Quoted 3 lines
Signature · 1 line
1.7.9.5Reviewed-by Benoit Canet <[email protected]>
Thanks, applied to the block branch.
Kevin