aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/iscsi_tcp.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-03-05 15:46:04 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-13 16:28:55 -0400
commit4d1083509a69a36cc1394f188b7b8956e5526a16 (patch)
tree7afdc7d1e1ae88ee5199d57d3fc8952f985620b7 /drivers/scsi/iscsi_tcp.c
parent32ae763e3fce4192cd008956a340353a2e5c3192 (diff)
[SCSI] iscsi lib: remove qdepth param from iscsi host allocation
The qdepth setting was useful when we needed libiscsi to verify the setting. Now we just need to make sure if older tools passed in zero then we need to set some default. So this patch just has us use the sht->cmd_per_lun or if for LLD does a host per session then we can set it on per host basis. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r--drivers/scsi/iscsi_tcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 79a706a94c68..ad8676c98c68 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -777,10 +777,11 @@ iscsi_sw_tcp_session_create(struct iscsi_endpoint *ep, uint16_t cmds_max,
777 return NULL; 777 return NULL;
778 } 778 }
779 779
780 shost = iscsi_host_alloc(&iscsi_sw_tcp_sht, 0, qdepth, 1); 780 shost = iscsi_host_alloc(&iscsi_sw_tcp_sht, 0, 1);
781 if (!shost) 781 if (!shost)
782 return NULL; 782 return NULL;
783 shost->transportt = iscsi_sw_tcp_scsi_transport; 783 shost->transportt = iscsi_sw_tcp_scsi_transport;
784 shost->cmd_per_lun = qdepth;
784 shost->max_lun = iscsi_max_lun; 785 shost->max_lun = iscsi_max_lun;
785 shost->max_id = 0; 786 shost->max_id = 0;
786 shost->max_channel = 0; 787 shost->max_channel = 0;