scsi: mpt3sas: save and use MSI-X index for posting RD
authorSuganath Prabu S <suganath-prabu.subramani@broadcom.com>
Fri, 31 May 2019 12:14:39 +0000 (08:14 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:26 +0000 (19:46 -0400)
commit998c3001d31a278c9fb5cf68a2b0285dc7c76cdd
tree5c5f0d51cafb1819be0a2991d344f1a445e78f8e
parent5dd48a555a40431787e4e780ec6b3a7632250853
scsi: mpt3sas: save and use MSI-X index for posting RD

In the IO submission path _base_get_msix_index is called twice. Initially
while getting the smid and subsequently while posting the request
descriptor (RD).

Refactor code to query msix index only while posting the request
descriptor. Save determined msix index in msix_io field.

Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c
drivers/scsi/mpt3sas/mpt3sas_base.h
drivers/scsi/mpt3sas/mpt3sas_scsih.c