[PATCH 2/3] nvme-loop: increment request retries counter before requeuing
Sagi Grimberg
sagi at grimberg.me
Wed Mar 29 11:00:26 PDT 2017
This way our max retry limit holds as well.
Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
drivers/nvme/target/loop.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvme/target/loop.c b/drivers/nvme/target/loop.c
index 227a5320879e..6a54e387379e 100644
--- a/drivers/nvme/target/loop.c
+++ b/drivers/nvme/target/loop.c
@@ -98,6 +98,7 @@ static void nvme_loop_complete_rq(struct request *req)
if (unlikely(req->errors)) {
if (nvme_req_needs_retry(req, req->errors)) {
+ req->retries++;
nvme_requeue_req(req);
return;
}
--
2.7.4
More information about the Linux-nvme
mailing list