Skip to content

Commit

Permalink
nvme-fc: increment request retries counter before requeuing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sagi Grimberg authored and Jens Axboe committed Apr 4, 2017
1 parent 7d9a5e7 commit f2cd54d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/nvme/host/fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1935,6 +1935,7 @@ nvme_fc_complete_rq(struct request *rq)

if (unlikely(rq->errors)) {
if (nvme_req_needs_retry(rq, rq->errors)) {
rq->retries++;
nvme_requeue_req(rq);
return;
}
Expand Down

0 comments on commit f2cd54d

Please sign in to comment.