nvme-rdma: Add debug message when reaches timeout
authorNitzan Carmi <nitzanc@mellanox.com>
Sun, 22 Oct 2017 09:37:04 +0000 (09:37 +0000)
committerChristoph Hellwig <hch@lst.de>
Mon, 23 Oct 2017 14:28:42 +0000 (16:28 +0200)
Signed-off-by: Nitzan Carmi <nitzanc@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c

index ff4635d317b5bfa1a7ce9f52d05ac969a4bbf04f..4552744eff454aafd9e837b82627be4992fcdc91 100644 (file)
@@ -1578,6 +1578,10 @@ nvme_rdma_timeout(struct request *rq, bool reserved)
 {
        struct nvme_rdma_request *req = blk_mq_rq_to_pdu(rq);
 
+       dev_warn(req->queue->ctrl->ctrl.device,
+                "I/O %d QID %d timeout, reset controller\n",
+                rq->tag, nvme_rdma_queue_idx(req->queue));
+
        /* queue error recovery */
        nvme_rdma_error_recovery(req->queue->ctrl);