aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSagi Grimberg <[email protected]>2017-03-29 20:54:46 +0300
committerJens Axboe <[email protected]>2017-04-04 09:48:23 -0600
commitf2cd54d3eba3a2048edcb91f145336180c55aee5 (patch)
tree6121692b3fd9ef61a013ff711a406e05308846b5
parent7d9a5e7176c60673b283bdb0e507d288b48d9528 (diff)
nvme-fc: increment request retries counter before requeuing
This way our max retry limit holds as well. Signed-off-by: Sagi Grimberg <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--drivers/nvme/host/fc.c1
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;
}