Skip to content

Commit d0d2c68

Browse files
Michael Hernandezmartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix response queue count for Target mode.
Target mode initialization was not calculating response queue values correctly resulting into one less MSI-X vector. [mkp: fixed Fixes: hash] Cc: <stable@vger.kernel.org> Fixes: 093df73 ("scsi: qla2xxx: Fix Target mode handling with Multiqueue changes.") Signed-off-by: Michael Hernandez <michael.hernandez@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent f54f2cb commit d0d2c68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1916,12 +1916,13 @@ qla83xx_iospace_config(struct qla_hw_data *ha)
19161916
if (ql2xmqsupport) {
19171917
/* MB interrupt uses 1 vector */
19181918
ha->max_req_queues = ha->msix_count - 1;
1919-
ha->max_rsp_queues = ha->max_req_queues;
19201919

19211920
/* ATIOQ needs 1 vector. That's 1 less QPair */
19221921
if (QLA_TGT_MODE_ENABLED())
19231922
ha->max_req_queues--;
19241923

1924+
ha->max_rsp_queues = ha->max_req_queues;
1925+
19251926
/* Queue pairs is the max value minus
19261927
* the base queue pair */
19271928
ha->max_qpairs = ha->max_req_queues - 1;

0 commit comments

Comments
 (0)