]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fb10fb89307327b5e7723150aa0ec2159ab449b
treecbba7f92a95b4edb851b56583d49054ea5b88d74
parenta8a83226b5878b7ebc9c77864d780a74ac016370
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