[PATCH] nvme-rdma: Add debug message when reaches timeout

Nitzan Carmi nitzanc at mellanox.com
Wed Oct 18 00:44:09 PDT 2017


Signed-off-by: Nitzan Carmi <nitzanc at mellanox.com>
Reviewed-by: Max Gurtovoy <maxg at mellanox.com>
---
 drivers/nvme/host/rdma.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index 92a03ff..00c033e 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -1582,6 +1582,10 @@ nvme_rdma_timeout(struct request *rq, bool reserved)
 {
 	struct nvme_rdma_request *req = blk_mq_rq_to_pdu(rq);

+	dev_dbg_ratelimited(req->queue->ctrl->ctrl.device,
+						"Reached timeout - cid %d qid %d", rq->tag,
+						cpu_to_le16(nvme_rdma_queue_idx(req->queue)));
+
 	/* queue error recovery */
 	nvme_rdma_error_recovery(req->queue->ctrl);

--
2.9.4




More information about the Linux-nvme mailing list