提交 f2cd54d3 编写于 作者: S Sagi Grimberg 提交者: Jens Axboe

nvme-fc: increment request retries counter before requeuing

This way our max retry limit holds as well.
Signed-off-by: NSagi Grimberg <sagi@grimberg.me>
Reviewed-by: NMax Gurtovoy <maxg@mellanox.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 7d9a5e71
...@@ -1935,6 +1935,7 @@ nvme_fc_complete_rq(struct request *rq) ...@@ -1935,6 +1935,7 @@ nvme_fc_complete_rq(struct request *rq)
if (unlikely(rq->errors)) { if (unlikely(rq->errors)) {
if (nvme_req_needs_retry(rq, rq->errors)) { if (nvme_req_needs_retry(rq, rq->errors)) {
rq->retries++;
nvme_requeue_req(rq); nvme_requeue_req(rq);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册