projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0aebd2
)
scsi: ibmvfc: Stop using scsi_cmnd.tag
author
John Garry
<john.garry@huawei.com>
Tue, 17 Aug 2021 13:43:37 +0000
(21:43 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 18 Aug 2021 02:28:39 +0000
(22:28 -0400)
Use scsi_cmd_to_rq(scsi_cmnd)->tag in preference to scsi_cmnd.tag.
Link:
https://lore.kernel.org/r/1629207817-211936-1-git-send-email-john.garry@huawei.com
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi/ibmvfc.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/ibmvscsi/ibmvfc.c
b/drivers/scsi/ibmvscsi/ibmvfc.c
index
7fa5e64
..
ba7150c
100644
(file)
--- a/
drivers/scsi/ibmvscsi/ibmvfc.c
+++ b/
drivers/scsi/ibmvscsi/ibmvfc.c
@@
-1956,7
+1956,7
@@
static int ibmvfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len);
if (cmnd->flags & SCMD_TAGGED) {
- vfc_cmd->task_tag = cpu_to_be64(
cmnd
->tag);
+ vfc_cmd->task_tag = cpu_to_be64(
scsi_cmd_to_rq(cmnd)
->tag);
iu->pri_task_attr = IBMVFC_SIMPLE_TASK;
}