From e806666e25dc29f81b659e12386f6168488fa9a6 Mon Sep 17 00:00:00 2001 From: Sagi Grimberg Date: Wed, 29 Mar 2017 20:51:10 +0300 Subject: [PATCH] nvme-rdma: increment request retries counter before requeuing This way our max retry limit holds as well. Signed-off-by: Sagi Grimberg Reviewed-by: Max Gurtovoy Reviewed-by: Christoph Hellwig Signed-off-by: Jens Axboe --- drivers/nvme/host/rdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 37a4201d623d..a4608c362292 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -1525,6 +1525,7 @@ static void nvme_rdma_complete_rq(struct request *rq) if (unlikely(rq->errors)) { if (nvme_req_needs_retry(rq, rq->errors)) { + rq->retries++; nvme_requeue_req(rq); return; } -- GitLab