Commit 7d9a5e71 authored by Sagi Grimberg's avatar Sagi Grimberg Committed by Jens Axboe

nvme-loop: increment request retries counter before requeuing

This way our max retry limit holds as well.
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent e806666e
...@@ -98,6 +98,7 @@ static void nvme_loop_complete_rq(struct request *req) ...@@ -98,6 +98,7 @@ static void nvme_loop_complete_rq(struct request *req)
if (unlikely(req->errors)) { if (unlikely(req->errors)) {
if (nvme_req_needs_retry(req, req->errors)) { if (nvme_req_needs_retry(req, req->errors)) {
req->retries++;
nvme_requeue_req(req); nvme_requeue_req(req);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment