aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2019-05-21 17:49:01 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2019-06-18 19:46:21 -0400
commitb9e5a2d961dbedd7ee293d21f12d6b5d4d4fc35a (patch)
tree533ba4906e46fe5b4be08ba8a6283124c3d813da /drivers/scsi/lpfc/lpfc_init.c
parentscsi: lpfc: Cancel queued work for an IO when processing a received ABTS (diff)
downloadlinux-dev-b9e5a2d961dbedd7ee293d21f12d6b5d4d4fc35a.tar.xz
linux-dev-b9e5a2d961dbedd7ee293d21f12d6b5d4d4fc35a.zip
scsi: lpfc: Fix hardlockup in scsi_cmd_iocb_cmpl
There is a race condition with the abort handler declaring a waitq item on it's stack, followed by a timeout in the abort handler that has it give up on the abort return to its caller. When the io is finally aborted and its completion handler called, it references the waitq element that the abort_handler set up, which is no longer valid resulting in a deadlock. Fix by clearing the waitq reference, under lock, when the abort handler timeout gives up. Have the completion handler validate the waitq before referencing it. 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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions