Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1459911
| From | John Garry <john.garry@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 7/8] hisi_sas: add TMF success check |
| Date | 2016-08-10 22:50 +0200 |
| Message-ID | <s4IBR-1DK-69@gated-at.bofh.it> (permalink) |
| References | <s4GgF-79-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
When a tmf is issued, various response codes can be
returned from the target. For a query tmf the
response may be TMF_RESP_FUNC_COMPLETE or
TMF_RESP_FUNC_SUCC.
Add a condition for TMF_RESP_FUNC_SUCC to
hisi_sas_exec_internal_tmf_task().
This affects query tmf, as the result is success
the returned value was for failure.
Signed-off-by: John Garry <john.garry@huawei.com>
---
drivers/scsi/hisi_sas/hisi_sas_main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index af92b137..3ba8dc7 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -743,6 +743,12 @@ static int hisi_sas_exec_internal_tmf_task(struct domain_device *device,
}
if (task->task_status.resp == SAS_TASK_COMPLETE &&
+ task->task_status.stat == TMF_RESP_FUNC_SUCC) {
+ res = TMF_RESP_FUNC_SUCC;
+ break;
+ }
+
+ if (task->task_status.resp == SAS_TASK_COMPLETE &&
task->task_status.stat == SAS_DATA_UNDERRUN) {
/* no error, but return the number of bytes of
* underrun
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/8] hisi_sas internal abort support John Garry <john.garry@huawei.com> - 2016-08-10 20:20 +0200
[PATCH 4/8] hisi_sas: add prep_abort_v2_hw() John Garry <john.garry@huawei.com> - 2016-08-10 21:30 +0200
[PATCH 2/8] hisi_sas: for internal abort in hisi_sas_dev_gone() John Garry <john.garry@huawei.com> - 2016-08-10 21:30 +0200
[PATCH 3/8] hisi_sas: add internal abort to hisi_sas_abort_task() John Garry <john.garry@huawei.com> - 2016-08-10 22:50 +0200
[PATCH 7/8] hisi_sas: add TMF success check John Garry <john.garry@huawei.com> - 2016-08-10 22:50 +0200
[PATCH 1/8] hisi_sas: add internal abort core code John Garry <john.garry@huawei.com> - 2016-08-10 23:00 +0200
Re: [PATCH 1/8] hisi_sas: add internal abort core code zhangfei <zhangfei.gao@linaro.org> - 2016-08-21 02:50 +0200
Re: [PATCH 1/8] hisi_sas: add internal abort core code John Garry <john.garry@huawei.com> - 2016-08-22 10:00 +0200
[PATCH 5/8] hisi_sas: add v2 hw slot complete internal abort support John Garry <john.garry@huawei.com> - 2016-08-10 23:00 +0200
csiph-web