aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_isr.c
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2013-01-30 03:34:38 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-02-22 06:29:49 -0500
commit3c290d0b5f8ff7b0fd2c964c5ec2c14191a9e790 (patch)
treeaeabbf158d1efef3689782c996685a2630de289c /drivers/scsi/qla2xxx/qla_isr.c
parent8d93f5502221cc8eb420da65dc86a5ef07b038d0 (diff)
[SCSI] qla2xxx: Ramp down queue depth for attached SCSI devices when driver resources are low.
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_isr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 45130738c2bf..1b192c8bb133 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -1934,6 +1934,7 @@ qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)
1934 1934
1935 /* Fast path completion. */ 1935 /* Fast path completion. */
1936 if (comp_status == CS_COMPLETE && scsi_status == 0) { 1936 if (comp_status == CS_COMPLETE && scsi_status == 0) {
1937 qla2x00_do_host_ramp_up(vha);
1937 qla2x00_process_completed_request(vha, req, handle); 1938 qla2x00_process_completed_request(vha, req, handle);
1938 1939
1939 return; 1940 return;
@@ -2193,6 +2194,9 @@ out:
2193 cp->cmnd[8], cp->cmnd[9], scsi_bufflen(cp), rsp_info_len, 2194 cp->cmnd[8], cp->cmnd[9], scsi_bufflen(cp), rsp_info_len,
2194 resid_len, fw_resid_len); 2195 resid_len, fw_resid_len);
2195 2196
2197 if (!res)
2198 qla2x00_do_host_ramp_up(vha);
2199
2196 if (rsp->status_srb == NULL) 2200 if (rsp->status_srb == NULL)
2197 sp->done(ha, sp, res); 2201 sp->done(ha, sp, res);
2198} 2202}