diff options
Diffstat (limited to 'drivers/scsi/cxgb3i')
-rw-r--r-- | drivers/scsi/cxgb3i/cxgb3i_iscsi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/cxgb3i/cxgb3i_iscsi.c b/drivers/scsi/cxgb3i/cxgb3i_iscsi.c index f6ed9c62efb0..307f55e329f5 100644 --- a/drivers/scsi/cxgb3i/cxgb3i_iscsi.c +++ b/drivers/scsi/cxgb3i/cxgb3i_iscsi.c | |||
@@ -170,8 +170,7 @@ struct cxgb3i_hba *cxgb3i_hba_host_add(struct cxgb3i_adapter *snic, | |||
170 | int err; | 170 | int err; |
171 | 171 | ||
172 | shost = iscsi_host_alloc(&cxgb3i_host_template, | 172 | shost = iscsi_host_alloc(&cxgb3i_host_template, |
173 | sizeof(struct cxgb3i_hba), | 173 | sizeof(struct cxgb3i_hba), 1); |
174 | CXGB3I_SCSI_QDEPTH_DFLT, 1); | ||
175 | if (!shost) { | 174 | if (!shost) { |
176 | cxgb3i_log_info("iscsi_host_alloc failed.\n"); | 175 | cxgb3i_log_info("iscsi_host_alloc failed.\n"); |
177 | return NULL; | 176 | return NULL; |
@@ -843,7 +842,7 @@ static struct scsi_host_template cxgb3i_host_template = { | |||
843 | .can_queue = CXGB3I_SCSI_QDEPTH_DFLT - 1, | 842 | .can_queue = CXGB3I_SCSI_QDEPTH_DFLT - 1, |
844 | .sg_tablesize = SG_ALL, | 843 | .sg_tablesize = SG_ALL, |
845 | .max_sectors = 0xFFFF, | 844 | .max_sectors = 0xFFFF, |
846 | .cmd_per_lun = ISCSI_DEF_CMD_PER_LUN, | 845 | .cmd_per_lun = CXGB3I_SCSI_QDEPTH_DFLT, |
847 | .eh_abort_handler = iscsi_eh_abort, | 846 | .eh_abort_handler = iscsi_eh_abort, |
848 | .eh_device_reset_handler = iscsi_eh_device_reset, | 847 | .eh_device_reset_handler = iscsi_eh_device_reset, |
849 | .eh_target_reset_handler = iscsi_eh_target_reset, | 848 | .eh_target_reset_handler = iscsi_eh_target_reset, |