nvme-loop: 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>
This commit is contained in:
parent
e806666e25
commit
7d9a5e7176
|
@ -98,6 +98,7 @@ static void nvme_loop_complete_rq(struct request *req)
|
|||
|
||||
if (unlikely(req->errors)) {
|
||||
if (nvme_req_needs_retry(req, req->errors)) {
|
||||
req->retries++;
|
||||
nvme_requeue_req(req);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue