]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix missing wakeups on abort threads
authorJames Smart <jsmart2021@gmail.com>
Wed, 3 Apr 2019 18:10:34 +0000 (11:10 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Apr 2019 03:35:09 +0000 (23:35 -0400)
commit977f56c3c1f435182dd7a63c731517126dc4b4d8
tree519df6f6b4b5801ec16c561f719066a3fa5d079c
parentcda891ff94e1f79f2cfa9a1847c03b987715c49e
scsi: lpfc: Fix missing wakeups on abort threads

Abort thread wakeups, on some wqe types, are not happening.  The thread
wakeup logic is dependent upon the LPFC_DRIVER_ABORTED flag. However, on
these wqes, the completion handler running prior to the io completion
routine ends up clearing the flag.

Rework the wakeup logic to look at a non-null waitq element which must be
set if the abort thread is waiting. This is reverting the change in the
indicated patch.

Fixes: 57321250fef1c ("scsi: lpfc: Rework locking on SCSI io completion")
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_scsi.c