scsi: pm80xx: Cleanup command when a reset times out
authorpeter chang <dpf@google.com>
Thu, 14 Nov 2019 10:09:06 +0000 (15:39 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Nov 2019 02:37:33 +0000 (21:37 -0500)
commit51c1c5f6ed64c2b65a8cf89dac136273d25ca540
tree273197b8120db96742ef459f4bdb0a489b099461
parent91a43fa61f102e045d9bac07a4b7739a4bbe623a
scsi: pm80xx: Cleanup command when a reset times out

Added the fix so the if driver properly sent the abort it tries to remove
it from the firmware's list of outstanding commands regardless of the abort
status. This means that the task gets freed 'now' rather than possibly
getting freed later when the scsi layer thinks it's leaked but still valid.

Link: https://lore.kernel.org/r/20191114100910.6153-10-deepak.ukey@microchip.com
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: peter chang <dpf@google.com>
Signed-off-by: Deepak Ukey <deepak.ukey@microchip.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pm8001/pm8001_sas.c