diff options
author | James.Smart@Emulex.Com <James.Smart@Emulex.Com> | 2005-06-25 10:34:17 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-07-02 18:07:57 -0400 |
commit | 564b2960833f8802ae2b7b7ad840f154647549c7 (patch) | |
tree | ba4413981f7141f657a20f8be85b4f2592b97060 /drivers/scsi/lpfc | |
parent | 87f6eaffd732bc20b5a02e9f36b86f67310d8129 (diff) |
[SCSI] lpfc: Set max_sectors in host template
Add max_sectors to the driver host template and initialize it with
0xFFFF since the driver has no limitations on the size a transfer
contained by a scsi command and that fits within the sg_tablesize
provisioned by the driver. This fixes a performance issue seen in
some configurations.
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_scsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index f2aff3f4042b..4c1ab21f3071 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c | |||
@@ -1273,4 +1273,5 @@ struct scsi_host_template lpfc_template = { | |||
1273 | .cmd_per_lun = LPFC_CMD_PER_LUN, | 1273 | .cmd_per_lun = LPFC_CMD_PER_LUN, |
1274 | .use_clustering = ENABLE_CLUSTERING, | 1274 | .use_clustering = ENABLE_CLUSTERING, |
1275 | .shost_attrs = lpfc_host_attrs, | 1275 | .shost_attrs = lpfc_host_attrs, |
1276 | .max_sectors = 0xFFFF, | ||
1276 | }; | 1277 | }; |