On 12/27/18 12:33 AM, James Smart wrote:
The desired affinity for the hardware queue behavior is for
hdwq 0 to be affinitized with cpu 0, hdwq 1 to cpu 1, and so on.
The implementation so far does not do this if the number of
cpus is greating than the number of hardware queues (e.g. hardware
greater?
queue allocation was administratively reduced or hardware queue
resources could not scale to the cpu count).

Correct the queue affinitization logic, when queue count is less than
cpu count.

Signed-off-by: Dick Kennedy <dick.kenn...@broadcom.com>
Signed-off-by: James Smart <jsmart2...@gmail.com>
---
  drivers/scsi/lpfc/lpfc_attr.c | 38 +++++++++++++++++++++-------
  drivers/scsi/lpfc/lpfc_init.c | 58 +++++++++++++++++++------------------------
  drivers/scsi/lpfc/lpfc_sli4.h |  2 +-
  3 files changed, 56 insertions(+), 42 deletions(-)

Reviewed-by: Hannes Reinecke <h...@suse.com>

Cheers,

Hannes

Reply via email to