projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f8f3ea
)
scsi: qedf: Use scsi_cmd_to_rq() instead of scsi_cmnd.request
author
Bart Van Assche
<bvanassche@acm.org>
Mon, 9 Aug 2021 23:03:38 +0000
(16:03 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Thu, 12 Aug 2021 02:25:40 +0000
(22:25 -0400)
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-36-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_io.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qedf/qedf_io.c
b/drivers/scsi/qedf/qedf_io.c
index 6b5b6a75ac88583c183b85aa00decbcd5082edf8..3404782988d582a06858c5a825ea0d534b3b830b 100644
(file)
--- a/
drivers/scsi/qedf/qedf_io.c
+++ b/
drivers/scsi/qedf/qedf_io.c
@@
-1162,13
+1162,7
@@
void qedf_scsi_completion(struct qedf_ctx *qedf, struct fcoe_cqe *cqe,
return;
}
- if (!sc_cmd->request) {
- QEDF_WARN(&(qedf->dbg_ctx), "sc_cmd->request is NULL, "
- "sc_cmd=%p.\n", sc_cmd);
- return;
- }
-
- if (!sc_cmd->request->q) {
+ if (!scsi_cmd_to_rq(sc_cmd)->q) {
QEDF_WARN(&(qedf->dbg_ctx), "request->q is NULL so request "
"is not valid, sc_cmd=%p.\n", sc_cmd);
return;