From: Nitzan Carmi Date: Sun, 22 Oct 2017 09:37:04 +0000 (+0000) Subject: nvme-rdma: Add debug message when reaches timeout X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e62a538da2e7401bad5293d210ce00583ac12f39;p=openwrt%2Fstaging%2Fblogic.git nvme-rdma: Add debug message when reaches timeout Signed-off-by: Nitzan Carmi Reviewed-by: Max Gurtovoy Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index ff4635d317b5..4552744eff45 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -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);