summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2017-03-29 20:51:10 +0300
committerJens Axboe <axboe@fb.com>2017-04-04 09:48:23 -0600
commite806666e25dc29f81b659e12386f6168488fa9a6 (patch)
tree0c3f75a3c39c91ec2f8393a75b3812003b1489b2
parent62eeacb0e04f2aff7099a7765f386bb7ba53d5e2 (diff)
nvme-rdma: increment request retries counter before requeuing
This way our max retry limit holds as well. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Max Gurtovoy <maxg@mellanox.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--drivers/nvme/host/rdma.c1
1 files changed, 1 insertions, 0 deletions
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;
}