diff options
author | James Smart <James.Smart@Emulex.Com> | 2008-09-07 11:52:04 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-13 09:28:57 -0400 |
commit | 977b5a0af6d22a1a0170057c19cde37eeac68acd (patch) | |
tree | 247128ab00aa554eca5366ff8fb3505930729eaf /drivers/scsi/lpfc/lpfc_hbadisc.c | |
parent | b522d7d42d7ce843885d4c6740c5bd50876a2971 (diff) |
[SCSI] lpfc 8.2.8 v2 : Add sysfs control of target queue depth handling
Added new sysfs attribute lpfc_max_scsicmpl_time. Attribute, when enabled,
will control target queue depth based on I/O completion time.
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 3b00d9b86c7b..887a5283605f 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c | |||
@@ -2988,6 +2988,8 @@ lpfc_nlp_init(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, | |||
2988 | INIT_LIST_HEAD(&ndlp->nlp_listp); | 2988 | INIT_LIST_HEAD(&ndlp->nlp_listp); |
2989 | kref_init(&ndlp->kref); | 2989 | kref_init(&ndlp->kref); |
2990 | NLP_INT_NODE_ACT(ndlp); | 2990 | NLP_INT_NODE_ACT(ndlp); |
2991 | atomic_set(&ndlp->cmd_pending, 0); | ||
2992 | ndlp->cmd_qdepth = LPFC_MAX_TGT_QDEPTH; | ||
2991 | 2993 | ||
2992 | lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE, | 2994 | lpfc_debugfs_disc_trc(vport, LPFC_DISC_TRC_NODE, |
2993 | "node init: did:x%x", | 2995 | "node init: did:x%x", |