scsi: mpt3sas: Load balance to improve performance and avoid soft lockups
authorSuganath Prabu <suganath-prabu.subramani@broadcom.com>
Fri, 15 Feb 2019 07:40:28 +0000 (02:40 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 18 Mar 2019 21:16:43 +0000 (17:16 -0400)
commit51e3b2ad6de2b135d0fc7170f1b133f4e7a7639d
treec36b532d14e54a65827af0b1fa6be3925b153e99
parent320e77acb32774b6addfe38d562956fad70c5f0d
scsi: mpt3sas: Load balance to improve performance and avoid soft lockups

Driver uses "reply descriptor post queues" in round robin fashion so that
IO's are distributed to all the available reply descriptor post queues
equally.  With this each reply descriptor post queue load is balanced.

This is enabled only if CPUs count to MSI-X vector count ratio is X:1
(where X > 1) This improves performance and also fixes soft lockups.

Signed-off-by: Suganath Prabu <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