scsi: lpfc: Fix update of wq consumer index in lpfc_sli4_wq_release
authorJames Smart <jsmart2021@gmail.com>
Sun, 22 Mar 2020 18:12:58 +0000 (11:12 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 27 Mar 2020 03:15:10 +0000 (23:15 -0400)
commit1543af381e7b784fbc896047a037b6d9ee6e9b6f
tree0a373c0b5f039382407cd2d644d9ac451ad94f1f
parent4cd70891308dfb875ef31060c4a4aa8872630a2e
scsi: lpfc: Fix update of wq consumer index in lpfc_sli4_wq_release

The lpfc_sli4_wq_release() routine iterates for each interim value when
updating the wq consuemr index.  This wastes cycles and possibly confuses
things as thevalue itterates (and the modulo logic is being applied).

There's no reason for this. Just set it to the value from the hw.

Link: https://lore.kernel.org/r/20200322181304.37655-7-jsmart2021@gmail.com
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c