瀏覽代碼

[SCSI] be2iscsi: Fix for first_burst

This patch fixes the first_burst being modified
instead of max_burst

Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Jayamohan Kallickal 15 年之前
父節點
當前提交
230dceb431
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/scsi/be2iscsi/be_iscsi.c

+ 2 - 2
drivers/scsi/be2iscsi/be_iscsi.c

@@ -274,8 +274,8 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn,
 			conn->max_recv_dlength = 65536;
 		break;
 	case ISCSI_PARAM_MAX_BURST:
-		if (session->first_burst > 262144)
-			session->first_burst = 262144;
+		if (session->max_burst > 262144)
+			session->max_burst = 262144;
 		break;
 	default:
 		return 0;