James Smart 4eb0153588 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: c2017260eea2d ("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>
2019-04-03 23:35:09 -04:00
..
2019-03-09 16:53:47 -08:00
2018-11-06 20:42:51 -05:00
2019-03-16 12:51:50 -07:00
2019-03-09 16:53:47 -08:00
2019-03-16 12:51:50 -07:00
2019-03-09 16:53:47 -08:00
2019-03-09 16:53:47 -08:00
2019-03-09 16:53:47 -08:00
2019-03-16 12:51:50 -07:00