diff options
author | Nitzan Carmi <nitzanc@mellanox.com> | 2017-10-22 11:37:04 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-10-23 16:28:42 +0200 |
commit | e62a538da2e7401bad5293d210ce00583ac12f39 (patch) | |
tree | 5f8619994fa1f5be25ede4c88fe057df57359ede /drivers | |
parent | nvme-rdma: align nvme_rdma_device structure (diff) | |
download | linux-e62a538da2e7401bad5293d210ce00583ac12f39.tar.xz linux-e62a538da2e7401bad5293d210ce00583ac12f39.zip |
nvme-rdma: Add debug message when reaches timeout
Signed-off-by: Nitzan Carmi <nitzanc@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvme/host/rdma.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |