projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b08abbd
)
scsi: qla2xxx: Return error when TMF returns
author
Anil Gurumurthy
<
[email protected]
>
Wed, 18 Jul 2018 21:29:55 +0000
(14:29 -0700)
committer
Martin K. Petersen
<
[email protected]
>
Fri, 20 Jul 2018 02:02:34 +0000
(22:02 -0400)
Propagate the task management completion status properly to avoid
unnecessary waits for commands to complete.
Fixes: faef62d13463 ("[SCSI] qla2xxx: Fix Task Management command asynchronous handling")
Cc: <
[email protected]
>
Signed-off-by: Anil Gurumurthy <
[email protected]
>
Signed-off-by: Himanshu Madhani <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/qla2xxx/qla_init.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_init.c
b/drivers/scsi/qla2xxx/qla_init.c
index db0e3279e07abe06071da74012ebf04f3a690a39..1b19b954bbae723be04d1ed80b1036bdd94436c6 100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_init.c
+++ b/
drivers/scsi/qla2xxx/qla_init.c
@@
-1489,11
+1489,10
@@
qla2x00_async_tm_cmd(fc_port_t *fcport, uint32_t flags, uint32_t lun,
wait_for_completion(&tm_iocb->u.tmf.comp);
- rval = tm_iocb->u.tmf.comp_status == CS_COMPLETE ?
- QLA_SUCCESS : QLA_FUNCTION_FAILED;
+ rval = tm_iocb->u.tmf.data;
- if (
(rval != QLA_SUCCESS) || tm_iocb->u.tmf.data
) {
- ql_
dbg(ql_dbg_taskm
, vha, 0x8030,
+ if (
rval != QLA_SUCCESS
) {
+ ql_
log(ql_log_warn
, vha, 0x8030,
"TM IOCB failed (%x).\n", rval);
}