scsi: hisi_sas: check for SAS_TASK_STATE_ABORTED in slot complete
authorJohn Garry <john.garry@huawei.com>
Wed, 22 Mar 2017 17:25:27 +0000 (01:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Mar 2017 15:12:02 +0000 (11:12 -0400)
commita305f33775c0b7202fe77cbd4cc3d7f2048efc52
treec52bc0be388aa4bb7287ac77823b146babfb8d49
parent055945df4c10eeb6057cf380906c9b88334dd63d
scsi: hisi_sas: check for SAS_TASK_STATE_ABORTED in slot complete

Check in slot_complete_v2_hw() for whether a task has already been
completed by upper layer.

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