scsi: hisi_sas: modify return value of hisi_sas_query_task()
sas_scsi_find_task() only deals with return value TMF_RESP_FUNC_FAILED/TMF_RESP_FUNC_SUCC/TMF_RESP_FUNC_COMPLETE of query task. So for LLDD errors just return TMF_RESP_FUNC_FAILED. Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by: John Garry <john.garry@huawei.com> Reviewed-by: Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Родитель
d2d7e7a03e
Коммит
997ee43c3a
|
@ -961,6 +961,9 @@ static int hisi_sas_query_task(struct sas_task *task)
|
|||
case TMF_RESP_FUNC_FAILED:
|
||||
case TMF_RESP_FUNC_COMPLETE:
|
||||
break;
|
||||
default:
|
||||
rc = TMF_RESP_FUNC_FAILED;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return rc;
|
||||
|
|
Загрузка…
Ссылка в новой задаче