Skip to content

Commit

Permalink
[SCSI] qla2xxx: Replace a constant with a macro definition for host->…
Browse files Browse the repository at this point in the history
…canqueue assigmnment.

Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Armen Baloyan authored and James Bottomley committed Dec 19, 2013
1 parent 3746078 commit a4e04d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions drivers/scsi/qla2xxx/qla_mr.h
Original file line number Diff line number Diff line change
Expand Up @@ -545,4 +545,7 @@ struct mr_data_fx00 {

#define QLAFX00_CRITEMP_THRSHLD 80 /* Celsius degrees */

/* Max conncurrent IOs that can be queued */
#define QLAFX00_MAX_CANQUEUE 1024

#endif
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -2562,7 +2562,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
host = base_vha->host;
base_vha->req = req;
if (IS_QLAFX00(ha))
host->can_queue = 1024;
host->can_queue = QLAFX00_MAX_CANQUEUE;
else
host->can_queue = req->length + 128;
if (IS_QLA2XXX_MIDTYPE(ha))
Expand Down

0 comments on commit a4e04d9

Please sign in to comment.