[PATCH] nvme-tcp: add additional info for nvme_tcp_timeout log
amit.engel at dell.com
amit.engel at dell.com
Wed Dec 7 02:58:27 PST 2022
From: Amit Engel <Amit.Engel at dell.com>
This provides additional details about the rq/cmd that is timed out
Signed-off-by: Amit Engel <Amit.Engel at dell.com>
---
drivers/nvme/host/tcp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index 1eed0fc26b3a..f2be7c23ace5 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -2277,8 +2277,9 @@ static enum blk_eh_timer_return nvme_tcp_timeout(struct request *rq)
struct nvme_tcp_cmd_pdu *pdu = req->pdu;
dev_warn(ctrl->device,
- "queue %d: timeout request %#x type %d\n",
- nvme_tcp_queue_id(req->queue), rq->tag, pdu->hdr.type);
+ "queue %d: timeout cid %#x opcode %#x type %d\n",
+ nvme_tcp_queue_id(req->queue), nvme_cid(rq),
+ pdu->cmd.common.opcode, pdu->hdr.type);
if (ctrl->state != NVME_CTRL_LIVE) {
/*
--
2.31.1
More information about the Linux-nvme
mailing list