scsi: qla2xxx: Add qla2x00_async_done() for async routines
authorSaurav Kashyap <skashyap@marvell.com>
Tue, 8 Feb 2022 09:39:46 +0000 (01:39 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Feb 2022 21:36:34 +0000 (16:36 -0500)
commit49b729f58e7a98a006a8a0c1dcca8a1a4f58d2a8
tree88cae31e5b30ec7e615b6ed8028948b1b08429ed
parent62ed6622aaf0ba3c41cc6db6f901cbaa2a7378d1
scsi: qla2xxx: Add qla2x00_async_done() for async routines

This done routine will delete the timer and check for its return value and
decrease the reference count accordingly. This prevents boot hangs reported
after commit 31e6cdbe0eae ("scsi: qla2xxx: Implement ref count for SRB")
was merged.

Link: https://lore.kernel.org/r/20220208093946.4471-1-njavali@marvell.com
Fixes: 31e6cdbe0eae ("scsi: qla2xxx: Implement ref count for SRB")
Reported-by: Ewan Milne <emilne@redhat.com>
Tested-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_iocb.c