diff options
author | Armen Baloyan <armen.baloyan@qlogic.com> | 2013-10-30 03:38:27 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-12-19 10:39:01 -0500 |
commit | a4e04d9a67713e928227bf0adcbcb8e4dfa70997 (patch) | |
tree | ea7d5180dd88b652ce6f1c38e7374d8ce732a185 | |
parent | 3746078fb022ddba836bbb1283e0e6e6b21af2c7 (diff) |
[SCSI] qla2xxx: Replace a constant with a macro definition for host->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>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mr.h | 3 | ||||
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mr.h b/drivers/scsi/qla2xxx/qla_mr.h index 1416e5edaf3b..6cd7072cc0ff 100644 --- a/drivers/scsi/qla2xxx/qla_mr.h +++ b/drivers/scsi/qla2xxx/qla_mr.h | |||
@@ -545,4 +545,7 @@ struct mr_data_fx00 { | |||
545 | 545 | ||
546 | #define QLAFX00_CRITEMP_THRSHLD 80 /* Celsius degrees */ | 546 | #define QLAFX00_CRITEMP_THRSHLD 80 /* Celsius degrees */ |
547 | 547 | ||
548 | /* Max conncurrent IOs that can be queued */ | ||
549 | #define QLAFX00_MAX_CANQUEUE 1024 | ||
550 | |||
548 | #endif | 551 | #endif |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index b1bfa72765e0..20d58be7b8d5 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2562,7 +2562,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
2562 | host = base_vha->host; | 2562 | host = base_vha->host; |
2563 | base_vha->req = req; | 2563 | base_vha->req = req; |
2564 | if (IS_QLAFX00(ha)) | 2564 | if (IS_QLAFX00(ha)) |
2565 | host->can_queue = 1024; | 2565 | host->can_queue = QLAFX00_MAX_CANQUEUE; |
2566 | else | 2566 | else |
2567 | host->can_queue = req->length + 128; | 2567 | host->can_queue = req->length + 128; |
2568 | if (IS_QLA2XXX_MIDTYPE(ha)) | 2568 | if (IS_QLA2XXX_MIDTYPE(ha)) |