scsi: mpt3sas: Add io_uring iopoll support
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Tue, 27 Jul 2021 08:12:12 +0000 (13:42 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Aug 2021 02:55:50 +0000 (22:55 -0400)
commit432bc7caef4eaacc1101ee2569bb870bdfeed7ce
tree58847c73b8d25f665f885082ef216cf02d7fef51
parentf5efd4fe78de871515444b660029074be17ec11f
scsi: mpt3sas: Add io_uring iopoll support

Enable the driver to work in non-IRQ mode, i.e. there will not be any MSI-X
vectors associated with queues dedicated to polling. The IOC hardware is
single submission queue and multiple reply queue. However, using the shared
host tagset support it is possible to simulate multiple hardware queues.

When poll_queues are enabled through the module parameter, the driver will
allocate extra reply queues without an MSI-X association. All I/O
completion on these queues will be done through the iopoll interface.

Link: https://lore.kernel.org/r/20210727081212.2742-1-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@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