On 12/27/18 12:33 AM, James Smart wrote:
Now that the lower half has much better per-cpu parallelization
using the hardware queues, the SCSI MQ support needs to be tied
into it.
The involves the following mods:
- Rather than selecting SCSI MQ support at compile time, detect
support at driver init time using shost_use_blk_mq().
- Add a module parameter, lpfc_enable_scsi_mq, to allow control of
the drivers default behavior.
- When scsi mq is enabled, use the hardware queue info from the
midlayer to help select the hardware queue to utilize. This
required change to the get_scsi-buf_xxx routines.
= Remove lpfc_sli4_scmd_to_wqidx_distr() routine. No longer needed.
Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com>
Signed-off-by: James Smart <jsmart2...@gmail.com>
---
drivers/scsi/lpfc/lpfc.h | 3 +-
drivers/scsi/lpfc/lpfc_attr.c | 10 ++++++
drivers/scsi/lpfc/lpfc_init.c | 7 ++++-
drivers/scsi/lpfc/lpfc_scsi.c | 73 ++++++++++++-------------------------------
4 files changed, 38 insertions(+), 55 deletions(-)
Reviewed-by: Hannes Reinecke <h...@suse.com>
Cheers,
Hannes