[pve-devel] [PATCH] fix iSCSI patch on commit ef5f1ab8555594d7d400308a4a38b2d0cdf1458f

Wolfgang Link w.link at proxmox.com
Thu Mar 17 12:29:49 CET 2016


The backported patch  ca369d51b3e1649be4a72addd6d6a168cfb3f537 from the kernel.org repo
has an bug in it.
The fix where made here patch commit d0eb20a863ba7dc1d3f4b841639671f134560be2
---
 iSCSI-block-sd-Fix-device-imposed-transfer-length-limits.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iSCSI-block-sd-Fix-device-imposed-transfer-length-limits.patch b/iSCSI-block-sd-Fix-device-imposed-transfer-length-limits.patch
index fcd2625..b90e754 100644
--- a/iSCSI-block-sd-Fix-device-imposed-transfer-length-limits.patch
+++ b/iSCSI-block-sd-Fix-device-imposed-transfer-length-limits.patch
@@ -124,7 +124,7 @@ diff -Naur a/drivers/scsi/sd.c b/drivers/scsi/sd.c
 +	if (sdkp->opt_xfer_blocks && sdkp->opt_xfer_blocks <= dev_max &&
 +	    sdkp->opt_xfer_blocks <= SD_DEF_XFER_BLOCKS)
 +		rw_max = q->limits.io_opt =
-+			logical_to_sectors(sdp, sdkp->opt_xfer_blocks);
++               sdkp->opt_xfer_blocks * sdp->sector_size;
 +	else
 +		rw_max = BLK_DEF_MAX_SECTORS;
  
-- 
2.1.4





More information about the pve-devel mailing list