mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 03:36:42 +07:00
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>
This commit is contained in:
parent
62eeacb0e0
commit
e806666e25
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user