From: Sagi Grimberg Date: Wed, 29 Mar 2017 17:51:10 +0000 (+0300) Subject: nvme-rdma: increment request retries counter before requeuing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e806666e25dc29f81b659e12386f6168488fa9a6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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; }