]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Convert bootstrap mbx polling from msleep to udelay
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Mar 2019 23:30:15 +0000 (16:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 16:57:02 +0000 (12:57 -0400)
commit86a509436dd3dcecbbb6abc7c58852836bf4a384
tree7b63cae8d74982b2faf5843a06fbb4a45d2043d7
parentb76a1527cf3e83ac52bf0ae6c7120795a630f5f1
scsi: lpfc: Convert bootstrap mbx polling from msleep to udelay

Current code is using msleep when polling for hw ready. Unfortunately the
msleep routine isn't very accurate on rescheduling. In fact, on a busy
systems which reset the adapter, it became 10s of seconds before it was
rescheduled.

Fix by busy waiting using udelay. As we're now busy waiting, significantly
reduce the wait time so that we can exit the pool loop as soon as possible.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c