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:
6bc85dd
)
qla2xxx: fix command initialization in target mode.
author
Kanoj Sarcar
<
[email protected]
>
Wed, 10 Jun 2015 15:05:23 +0000
(11:05 -0400)
committer
Nicholas Bellinger
<
[email protected]
>
Fri, 24 Jul 2015 21:19:31 +0000
(14:19 -0700)
Cc: <
[email protected]
> # v3.18+
Signed-off-by: Kanoj Sarcar <
[email protected]
>
Signed-off-by: Himanshu Madhani <
[email protected]
>
Reviewed-by: Nicholas Bellinger <
[email protected]
>
Signed-off-by: Nicholas Bellinger <
[email protected]
>
drivers/scsi/qla2xxx/qla_target.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_target.c
b/drivers/scsi/qla2xxx/qla_target.c
index 2491bc9dd2a5b58d87b4d4e0eec29cb218c4db52..17d656b3af6a6825e2ee7f91f4cee2e7f62d5c66 100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_target.c
+++ b/
drivers/scsi/qla2xxx/qla_target.c
@@
-3345,6
+3345,11
@@
static struct qla_tgt_cmd *qlt_get_tag(scsi_qla_host_t *vha,
cmd->loop_id = sess->loop_id;
cmd->conf_compl_supported = sess->conf_compl_supported;
+ cmd->cmd_flags = 0;
+ cmd->jiffies_at_alloc = get_jiffies_64();
+
+ cmd->reset_count = vha->hw->chip_reset;
+
return cmd;
}
@@
-3451,11
+3456,6
@@
static int qlt_handle_cmd_for_atio(struct scsi_qla_host *vha,
return -ENOMEM;
}
- cmd->cmd_flags = 0;
- cmd->jiffies_at_alloc = get_jiffies_64();
-
- cmd->reset_count = vha->hw->chip_reset;
-
cmd->cmd_in_wq = 1;
cmd->cmd_flags |= BIT_0;
INIT_WORK(&cmd->work, qlt_do_work);