All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] nvme-rdma: Fix race between queue timeout and error recovery
@ 2018-04-01 15:19 Israel Rukshin
  2018-04-01 15:19 ` [PATCH 2/2] nvme-rdma: Fix race at " Israel Rukshin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Israel Rukshin @ 2018-04-01 15:19 UTC (permalink / raw)


When returning BLK_EH_HANDLED from nvme_rdma_timeout() the block layer
complete the request.
Error recovery may also complete the request when aborting the requests.

Signed-off-by: Israel Rukshin <israelr at mellanox.com>
Reviewed-by: Max Gurtovoy <maxg at mellanox.com>
---
 drivers/nvme/host/rdma.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index 758537e..c1abfc8 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -1595,10 +1595,7 @@ static int nvme_rdma_cm_handler(struct rdma_cm_id *cm_id,
 	/* queue error recovery */
 	nvme_rdma_error_recovery(req->queue->ctrl);
 
-	/* fail with DNR on cmd timeout */
-	nvme_req(rq)->status = NVME_SC_ABORT_REQ | NVME_SC_DNR;
-
-	return BLK_EH_HANDLED;
+	return BLK_EH_RESET_TIMER;
 }
 
 /*
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-04-08 14:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-01 15:19 [PATCH 1/2] nvme-rdma: Fix race between queue timeout and error recovery Israel Rukshin
2018-04-01 15:19 ` [PATCH 2/2] nvme-rdma: Fix race at " Israel Rukshin
2018-04-04 12:32 ` [PATCH 1/2] nvme-rdma: Fix race between queue timeout and " Sagi Grimberg
2018-04-05  8:55 ` Christoph Hellwig
2018-04-08 11:04   ` Sagi Grimberg
2018-04-08 14:07     ` Israel Rukshin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.