aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_inline.h
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2013-10-30 03:38:14 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-12-19 10:38:57 -0500
commit50280c014de9d10f430bfbf3b343784d4cf1fc15 (patch)
tree9891ff39d7d8ed9d12775852523d51feb0cae38a /drivers/scsi/qla2xxx/qla_inline.h
parent8f476115b2fac206588c11aaa3fc20408d35bb15 (diff)
[SCSI] Revert "qla2xxx: Ramp down queue depth for attached SCSI devices when driver resources are low."
This reverts commit 3c290d0b5f8ff7b0fd2c964c5ec2c14191a9e790 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_inline.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_inline.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/scsi/qla2xxx/qla_inline.h b/drivers/scsi/qla2xxx/qla_inline.h
index 957088b04611..ce8b5fb0f347 100644
--- a/drivers/scsi/qla2xxx/qla_inline.h
+++ b/drivers/scsi/qla2xxx/qla_inline.h
@@ -261,25 +261,6 @@ qla2x00_gid_list_size(struct qla_hw_data *ha)
261} 261}
262 262
263static inline void 263static inline void
264qla2x00_do_host_ramp_up(scsi_qla_host_t *vha)
265{
266 if (vha->hw->cfg_lun_q_depth >= ql2xmaxqdepth)
267 return;
268
269 /* Wait at least HOST_QUEUE_RAMPDOWN_INTERVAL before ramping up */
270 if (time_before(jiffies, (vha->hw->host_last_rampdown_time +
271 HOST_QUEUE_RAMPDOWN_INTERVAL)))
272 return;
273
274 /* Wait at least HOST_QUEUE_RAMPUP_INTERVAL between each ramp up */
275 if (time_before(jiffies, (vha->hw->host_last_rampup_time +
276 HOST_QUEUE_RAMPUP_INTERVAL)))
277 return;
278
279 set_bit(HOST_RAMP_UP_QUEUE_DEPTH, &vha->dpc_flags);
280}
281
282static inline void
283qla2x00_handle_mbx_completion(struct qla_hw_data *ha, int status) 264qla2x00_handle_mbx_completion(struct qla_hw_data *ha, int status)
284{ 265{
285 if (test_bit(MBX_INTR_WAIT, &ha->mbx_cmd_flags) && 266 if (test_bit(MBX_INTR_WAIT, &ha->mbx_cmd_flags) &&