diff options
author | Jamie Wellnitz <Jamie.Wellnitz@emulex.com> | 2006-02-28 19:25:21 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-02-28 19:56:23 -0500 |
commit | b28485acb930f67c014024bc3b9c01129124e566 (patch) | |
tree | 1fcbc64296d1b592457f56474ce82f3870513627 /drivers/scsi/lpfc | |
parent | 406d6041ace581b63a7898f3c1ef036c58c74989 (diff) |
[SCSI] lpfc 8.1.2: Add module parameter to limit number of outstanding commands per lpfc HBA
Add module parameter to limit number of outstanding commands per lpfc HBA
Signed-off-by: Jamie Wellnitz <Jamie.Wellnitz@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 5625a8c2a8fd..b897e522a966 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c | |||
@@ -520,6 +520,16 @@ LPFC_ATTR_R(lun_queue_depth, 30, 1, 128, | |||
520 | "Max number of FCP commands we can queue to a specific LUN"); | 520 | "Max number of FCP commands we can queue to a specific LUN"); |
521 | 521 | ||
522 | /* | 522 | /* |
523 | # hba_queue_depth: This parameter is used to limit the number of outstanding | ||
524 | # commands per lpfc HBA. Value range is [32,8192]. If this parameter | ||
525 | # value is greater than the maximum number of exchanges supported by the HBA, | ||
526 | # then maximum number of exchanges supported by the HBA is used to determine | ||
527 | # the hba_queue_depth. | ||
528 | */ | ||
529 | LPFC_ATTR_R(hba_queue_depth, 8192, 32, 8192, | ||
530 | "Max number of FCP commands we can queue to a lpfc HBA"); | ||
531 | |||
532 | /* | ||
523 | # Some disk devices have a "select ID" or "select Target" capability. | 533 | # Some disk devices have a "select ID" or "select Target" capability. |
524 | # From a protocol standpoint "select ID" usually means select the | 534 | # From a protocol standpoint "select ID" usually means select the |
525 | # Fibre channel "ALPA". In the FC-AL Profile there is an "informative | 535 | # Fibre channel "ALPA". In the FC-AL Profile there is an "informative |
@@ -649,6 +659,7 @@ struct class_device_attribute *lpfc_host_attrs[] = { | |||
649 | &class_device_attr_lpfc_drvr_version, | 659 | &class_device_attr_lpfc_drvr_version, |
650 | &class_device_attr_lpfc_log_verbose, | 660 | &class_device_attr_lpfc_log_verbose, |
651 | &class_device_attr_lpfc_lun_queue_depth, | 661 | &class_device_attr_lpfc_lun_queue_depth, |
662 | &class_device_attr_lpfc_hba_queue_depth, | ||
652 | &class_device_attr_lpfc_nodev_tmo, | 663 | &class_device_attr_lpfc_nodev_tmo, |
653 | &class_device_attr_lpfc_fcp_class, | 664 | &class_device_attr_lpfc_fcp_class, |
654 | &class_device_attr_lpfc_use_adisc, | 665 | &class_device_attr_lpfc_use_adisc, |
@@ -1411,5 +1422,9 @@ lpfc_get_cfgparam(struct lpfc_hba *phba) | |||
1411 | default: | 1422 | default: |
1412 | phba->cfg_hba_queue_depth = LPFC_DFT_HBA_Q_DEPTH; | 1423 | phba->cfg_hba_queue_depth = LPFC_DFT_HBA_Q_DEPTH; |
1413 | } | 1424 | } |
1425 | |||
1426 | if (phba->cfg_hba_queue_depth > lpfc_hba_queue_depth) | ||
1427 | lpfc_hba_queue_depth_init(phba, lpfc_hba_queue_depth); | ||
1428 | |||
1414 | return; | 1429 | return; |
1415 | } | 1430 | } |