aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2021-08-09 16:03:13 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2021-08-11 22:25:37 -0400
commitd78f31ce7ef9a3bccb63ecb668d124166e591dfc (patch)
tree411ba61e915129e68a0c830c7a9e5a2404029096
parentscsi: RDMA/srp: Use scsi_cmd_to_rq() instead of scsi_cmnd.request (diff)
downloadwireguard-linux-d78f31ce7ef9a3bccb63ecb668d124166e591dfc.tar.xz
wireguard-linux-d78f31ce7ef9a3bccb63ecb668d124166e591dfc.zip
scsi: zfcp: Use scsi_cmd_to_rq() instead of scsi_cmnd.request
Prepare for removal of the request pointer by using scsi_cmd_to_rq() instead. This patch does not change any functionality. Link: https://lore.kernel.org/r/20210809230355.8186-11-bvanassche@acm.org Acked-by: Benjamin Block <bblock@linux.ibm.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 1990216cf289..6da8f6d05d39 100644
--- a/drivers/s390/scsi/zfcp_fsf.c
+++ b/drivers/s390/scsi/zfcp_fsf.c
@@ -2377,7 +2377,7 @@ static void zfcp_fsf_req_trace(struct zfcp_fsf_req *req, struct scsi_cmnd *scsi)
}
}
- blk_add_driver_data(scsi->request, &blktrc, sizeof(blktrc));
+ blk_add_driver_data(scsi_cmd_to_rq(scsi), &blktrc, sizeof(blktrc));
}
/**