diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-03-29 20:54:46 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-04 09:48:23 -0600 |
commit | f2cd54d3eba3a2048edcb91f145336180c55aee5 (patch) | |
tree | 6121692b3fd9ef61a013ff711a406e05308846b5 | |
parent | 7d9a5e7176c60673b283bdb0e507d288b48d9528 (diff) |
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>
-rw-r--r-- | drivers/nvme/host/fc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 7a1d7ea5366e..bae10a95b125 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -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; } |