scsi: hisi_sas: modify hisi_sas_abort_task() for SSP
authorJohn Garry <john.garry@huawei.com>
Wed, 22 Mar 2017 17:25:25 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:02 +0000 (11:12 -0400)
commitc35279f2f1eef8f7f91b2b529fc22f01b25a244f
treecbba7f92a95b4edb851b56583d49054ea5b88d74
parentfc8669514426b21b7aaa73e40a22fb1e1eb39259
scsi: hisi_sas: modify hisi_sas_abort_task() for SSP

Currently an internal abort is executed regardless of the result of the
TMF. We should also check the result of the internal abort to see if we
should free the slot.

So change the status code STAT_IO_COMPLETE to TMF_RESP_FUNC_SUCC,
meaning the slot has been successfully aborted.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c