]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla2xxx: Replace a constant with a macro definition for host->canqueue assigmn...
authorArmen Baloyan <armen.baloyan@qlogic.com>
Wed, 30 Oct 2013 07:38:27 +0000 (03:38 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 16 Dec 2013 18:58:00 +0000 (10:58 -0800)
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>
drivers/scsi/qla2xxx/qla_mr.h
drivers/scsi/qla2xxx/qla_os.c

index 1416e5edaf3b38d6fb158c18bd90f4a840c52d3c..6cd7072cc0fff57b8c43369a81d70f968515b0ae 100644 (file)
@@ -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
index b1bfa72765e091fe6b90fd0ebb8c3342a8a1a84e..20d58be7b8d570c0b2b32614ef8acbb176673caa 100644 (file)
@@ -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))