summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChad Dupuis <cdupuis@marvell.com>2019-04-21 22:44:52 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2019-04-29 08:34:09 -0400
commit276eb3e5d0a76571e95ed54abebc53c275e300d0 (patch)
tree35957a958f9178115630726c2bbf6ab4335a7fc1 /drivers
parent892f63d427ca55cbf7070b11cee790ff0325df18 (diff)
downloadlinux-276eb3e5d0a76571e95ed54abebc53c275e300d0.tar.gz
linux-276eb3e5d0a76571e95ed54abebc53c275e300d0.tar.bz2
linux-276eb3e5d0a76571e95ed54abebc53c275e300d0.zip
scsi: qedf: Print scsi_cmd backpointer in good completion path if the command is still being used
Printing scsi command pointer will help in crash dump analysis. Signed-off-by: Chad Dupuis <cdupuis@marvell.com> Signed-off-by: Saurav Kashyap <skashyap@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qedf/qedf_io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c
index 51378e51d8e4..f2d4b308bea1 100644
--- a/drivers/scsi/qedf/qedf_io.c
+++ b/drivers/scsi/qedf/qedf_io.c
@@ -1859,9 +1859,9 @@ int qedf_initiate_abts(struct qedf_ioreq *io_req, bool return_scsi_cmd_on_abts)
if (!test_bit(QEDF_CMD_OUTSTANDING, &io_req->flags) ||
test_bit(QEDF_CMD_IN_CLEANUP, &io_req->flags) ||
test_bit(QEDF_CMD_IN_ABORT, &io_req->flags)) {
- QEDF_ERR(&(qedf->dbg_ctx), "io_req xid=0x%x already in "
- "cleanup or abort processing or already "
- "completed.\n", io_req->xid);
+ QEDF_ERR(&qedf->dbg_ctx,
+ "io_req xid=0x%x sc_cmd=%p already in cleanup or abort processing or already completed.\n",
+ io_req->xid, io_req->sc_cmd);
rc = 1;
goto drop_rdata_kref;
}