Commit a4e04d9a authored by Armen Baloyan's avatar Armen Baloyan Committed by James Bottomley

[SCSI] qla2xxx: Replace a constant with a macro definition for host->canqueue assigmnment.

Signed-off-by: default avatarArmen Baloyan <armen.baloyan@qlogic.com>
Signed-off-by: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 3746078f
...@@ -545,4 +545,7 @@ struct mr_data_fx00 { ...@@ -545,4 +545,7 @@ struct mr_data_fx00 {
#define QLAFX00_CRITEMP_THRSHLD 80 /* Celsius degrees */ #define QLAFX00_CRITEMP_THRSHLD 80 /* Celsius degrees */
/* Max conncurrent IOs that can be queued */
#define QLAFX00_MAX_CANQUEUE 1024
#endif #endif
...@@ -2562,7 +2562,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -2562,7 +2562,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
host = base_vha->host; host = base_vha->host;
base_vha->req = req; base_vha->req = req;
if (IS_QLAFX00(ha)) if (IS_QLAFX00(ha))
host->can_queue = 1024; host->can_queue = QLAFX00_MAX_CANQUEUE;
else else
host->can_queue = req->length + 128; host->can_queue = req->length + 128;
if (IS_QLA2XXX_MIDTYPE(ha)) if (IS_QLA2XXX_MIDTYPE(ha))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment