Re: [PATCH 12/25] lpfc: Synchronize hardware queues with SCSI MQ interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.kennedy@xxxxxxxxxxxx>
Signed-off-by: James Smart <jsmart2021@xxxxxxxxx>
---
  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 <hare@xxxxxxxx>

Cheers,

Hannes



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux