diff options
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 8edcfddc0baf..eca4d611dd49 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -2114,6 +2114,7 @@ iscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, struct iscsi_stats *stats) | |||
2114 | static struct iscsi_cls_session * | 2114 | static struct iscsi_cls_session * |
2115 | iscsi_tcp_session_create(struct iscsi_transport *iscsit, | 2115 | iscsi_tcp_session_create(struct iscsi_transport *iscsit, |
2116 | struct scsi_transport_template *scsit, | 2116 | struct scsi_transport_template *scsit, |
2117 | uint16_t cmds_max, uint16_t qdepth, | ||
2117 | uint32_t initial_cmdsn, uint32_t *hostno) | 2118 | uint32_t initial_cmdsn, uint32_t *hostno) |
2118 | { | 2119 | { |
2119 | struct iscsi_cls_session *cls_session; | 2120 | struct iscsi_cls_session *cls_session; |
@@ -2121,7 +2122,7 @@ iscsi_tcp_session_create(struct iscsi_transport *iscsit, | |||
2121 | uint32_t hn; | 2122 | uint32_t hn; |
2122 | int cmd_i; | 2123 | int cmd_i; |
2123 | 2124 | ||
2124 | cls_session = iscsi_session_setup(iscsit, scsit, | 2125 | cls_session = iscsi_session_setup(iscsit, scsit, cmds_max, qdepth, |
2125 | sizeof(struct iscsi_tcp_cmd_task), | 2126 | sizeof(struct iscsi_tcp_cmd_task), |
2126 | sizeof(struct iscsi_tcp_mgmt_task), | 2127 | sizeof(struct iscsi_tcp_mgmt_task), |
2127 | initial_cmdsn, &hn); | 2128 | initial_cmdsn, &hn); |
@@ -2164,7 +2165,7 @@ static struct scsi_host_template iscsi_sht = { | |||
2164 | .name = "iSCSI Initiator over TCP/IP", | 2165 | .name = "iSCSI Initiator over TCP/IP", |
2165 | .queuecommand = iscsi_queuecommand, | 2166 | .queuecommand = iscsi_queuecommand, |
2166 | .change_queue_depth = iscsi_change_queue_depth, | 2167 | .change_queue_depth = iscsi_change_queue_depth, |
2167 | .can_queue = ISCSI_XMIT_CMDS_MAX - 1, | 2168 | .can_queue = ISCSI_DEF_XMIT_CMDS_MAX - 1, |
2168 | .sg_tablesize = ISCSI_SG_TABLESIZE, | 2169 | .sg_tablesize = ISCSI_SG_TABLESIZE, |
2169 | .max_sectors = 0xFFFF, | 2170 | .max_sectors = 0xFFFF, |
2170 | .cmd_per_lun = ISCSI_DEF_CMD_PER_LUN, | 2171 | .cmd_per_lun = ISCSI_DEF_CMD_PER_LUN, |