Commit 45c36f04 authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Keith Busch
Browse files

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: default avatarMax Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent a5c1a87c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2425,9 +2425,9 @@ static enum blk_eh_timer_return nvme_tcp_timeout(struct request *rq)
	int qid = nvme_tcp_queue_id(req->queue);

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

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