nvme-fc: 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
7d9a5e7176
commit
f2cd54d3eb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue