Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328805
b: refs/heads/master
c: 90695ee
h: refs/heads/master
i:
  328803: 114c226
v: v3
  • Loading branch information
James Smart authored and James Bottomley committed Sep 14, 2012
1 parent 019468a commit 11d50c3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8aa134a836061c54f64775ffc4006bdce8bea4a8
refs/heads/master: 90695ee0e984ef425b9f5a9845314b925357ffdf
14 changes: 14 additions & 0 deletions trunk/drivers/scsi/lpfc/lpfc_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -6542,6 +6542,9 @@ static int
lpfc_sli4_queue_verify(struct lpfc_hba *phba)
{
int cfg_fcp_io_channel;
uint32_t cpu;
uint32_t i = 0;


/*
* Sanity check for configured queue parameters against the run-time
Expand All @@ -6551,6 +6554,17 @@ lpfc_sli4_queue_verify(struct lpfc_hba *phba)
/* Sanity check on HBA EQ parameters */
cfg_fcp_io_channel = phba->cfg_fcp_io_channel;

/* It doesn't make sense to have more io channels then CPUs */
for_each_online_cpu(cpu) {
i++;
}
if (i < cfg_fcp_io_channel) {
lpfc_printf_log(phba, KERN_WARNING, LOG_INIT,
"3188 Reducing IO channels to match number of "
"CPUs: from %d to %d\n", cfg_fcp_io_channel, i);
cfg_fcp_io_channel = i;
}

if (cfg_fcp_io_channel >
phba->sli4_hba.max_cfg_param.max_eq) {
cfg_fcp_io_channel = phba->sli4_hba.max_cfg_param.max_eq;
Expand Down

0 comments on commit 11d50c3

Please sign in to comment.