]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix FCP hba_wqidx assignment
authorDick Kennedy <dick.kennedy@broadcom.com>
Sat, 30 Sep 2017 00:34:35 +0000 (17:34 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Oct 2017 02:46:36 +0000 (22:46 -0400)
commitdc6c5fc4103504c9fece78f60ff85fa1826502a0
tree648132c50d271d623f8ce58c3235b7757372aff0
parent4b91d107965b649a1a85caeb57564ff3c9cceb95
scsi: lpfc: Fix FCP hba_wqidx assignment

The driver is encountering  oops in lpfc_sli_calc_ring.

The driver is setting hba_wqidx for FCP based on the policy in use for
NVME. The two may not be the same.  Change to set the wqidx based on the
FCP policy.

Cc: <stable@vger.kernel.org> # 4.12+
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c