提交 f19eaa7f 编写于 作者: D Darrick J. Wong 提交者: James Bottomley

[SCSI] aic94xx: Increase can_queue for better performance

This patch sets can_queue in the aic94xx driver's scsi_host to better
performing values than what's there currently.  It seems that
asd_ha->seq.can_queue reflects the number of requests that can be
queued per controller; so long as there's one scsi_host per
controller, it seems logical that the scsi_host ought to have the same
can_queue value.  To the best of my (still limited) knowledge, this
method provides the correct value.

The effect of leaving this value set to 1 is terrible performance in
the case of either (a) certain Maxtor SAS drives flying solo or (b)
flooding several disks with I/O simultaneously (md-raid).  There may be
more scenarios where we see similar problems that I haven't uncovered.
Signed-off-by: NDarrick J. Wong <djwong@us.ibm.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 bc229b36
...@@ -620,6 +620,8 @@ static int __devinit asd_pci_probe(struct pci_dev *dev, ...@@ -620,6 +620,8 @@ static int __devinit asd_pci_probe(struct pci_dev *dev,
asd_ha->hw_prof.bios.present ? "build " : "not present", asd_ha->hw_prof.bios.present ? "build " : "not present",
asd_ha->hw_prof.bios.bld); asd_ha->hw_prof.bios.bld);
shost->can_queue = asd_ha->seq.can_queue;
if (use_msi) if (use_msi)
pci_enable_msi(asd_ha->pcidev); pci_enable_msi(asd_ha->pcidev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册