Skip to content

Commit 45c36f0

Browse files
mgurtovoykeithbusch
authored andcommitted
nvme-tcp: enhance timeout kernel log
Print the command_id along side blk-mq's tag to help match commands with protocol wire traces and logs. Signed-off-by: Max Gurtovoy <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent a5c1a87 commit 45c36f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/nvme/host/tcp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2425,9 +2425,9 @@ static enum blk_eh_timer_return nvme_tcp_timeout(struct request *rq)
24252425
int qid = nvme_tcp_queue_id(req->queue);
24262426

24272427
dev_warn(ctrl->device,
2428-
"queue %d: timeout cid %#x type %d opcode %#x (%s)\n",
2429-
nvme_tcp_queue_id(req->queue), nvme_cid(rq), pdu->hdr.type,
2430-
opc, nvme_opcode_str(qid, opc, fctype));
2428+
"I/O tag %d (%04x) type %d opcode %#x (%s) QID %d timeout\n",
2429+
rq->tag, nvme_cid(rq), pdu->hdr.type, opc,
2430+
nvme_opcode_str(qid, opc, fctype), qid);
24312431

24322432
if (ctrl->state != NVME_CTRL_LIVE) {
24332433
/*

0 commit comments

Comments
 (0)