diff options
author | Max Gurtovoy <mgurtovoy@nvidia.com> | 2024-01-07 02:29:50 +0200 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-01-08 10:09:50 -0800 |
commit | 45c36f04f1beb7c4c45f5910a1f69d6d9d5a19fb (patch) | |
tree | 4c4951fb53583bd308295f71cde2849f20f27e0d /drivers/nvme | |
parent | a5c1a87ce0876192d4343cdf5f0a22d737eb0ec3 (diff) | |
download | lwn-45c36f04f1beb7c4c45f5910a1f69d6d9d5a19fb.tar.gz lwn-45c36f04f1beb7c4c45f5910a1f69d6d9d5a19fb.zip |
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 <mgurtovoy@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c index 5056bcae2f39..b234f0674aeb 100644 --- a/drivers/nvme/host/tcp.c +++ b/drivers/nvme/host/tcp.c @@ -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) { /* |