Skip to content

Commit 8025c84

Browse files
Chad Dupuismartinkpetersen
authored andcommitted
scsi: qedf: Add task id to kref_get_unless_zero() debug messages when flushing requests
Helps to corroborate which requests we can't get reference on and if it's real bug or not. Signed-off-by: Chad Dupuis <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 3f9de7f commit 8025c84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/scsi/qedf/qedf_io.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,8 +1445,8 @@ void qedf_flush_active_ios(struct qedf_rport *fcport, int lun)
14451445
rc = kref_get_unless_zero(&io_req->refcount);
14461446
if (!rc) {
14471447
QEDF_ERR(&(qedf->dbg_ctx),
1448-
"Could not get kref for io_req=0x%p.\n",
1449-
io_req);
1448+
"Could not get kref for ELS io_req=0x%p xid=0x%x.\n",
1449+
io_req, io_req->xid);
14501450
continue;
14511451
}
14521452
qedf_flush_els_req(qedf, io_req);
@@ -1472,7 +1472,7 @@ void qedf_flush_active_ios(struct qedf_rport *fcport, int lun)
14721472
rc = kref_get_unless_zero(&io_req->refcount);
14731473
if (!rc) {
14741474
QEDF_ERR(&(qedf->dbg_ctx), "Could not get kref for "
1475-
"io_req=0x%p\n", io_req);
1475+
"io_req=0x%p xid=0x%x\n", io_req, io_req->xid);
14761476
continue;
14771477
}
14781478
QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_IO,

0 commit comments

Comments
 (0)