* [PATCH 1/1] nvme-rdma: Fix nvme_rdma_create_queue_ib error flow
@ 2017-11-06 14:18 Max Gurtovoy
2017-11-07 19:22 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Max Gurtovoy @ 2017-11-06 14:18 UTC (permalink / raw)
QP object is created using rdma_cm api, therefore the destruction
should use the same api for symmetry.
Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
---
drivers/nvme/host/rdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
index 0ebb539..957d626 100644
--- a/drivers/nvme/host/rdma.c
+++ b/drivers/nvme/host/rdma.c
@@ -493,7 +493,7 @@ static int nvme_rdma_create_queue_ib(struct nvme_rdma_queue *queue)
return 0;
out_destroy_qp:
- ib_destroy_qp(queue->qp);
+ rdma_destroy_qp(queue->cm_id);
out_destroy_ib_cq:
ib_free_cq(queue->ib_cq);
out_put_dev:
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 1/1] nvme-rdma: Fix nvme_rdma_create_queue_ib error flow
2017-11-06 14:18 [PATCH 1/1] nvme-rdma: Fix nvme_rdma_create_queue_ib error flow Max Gurtovoy
@ 2017-11-07 19:22 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2017-11-07 19:22 UTC (permalink / raw)
On Mon, Nov 06, 2017@04:18:51PM +0200, Max Gurtovoy wrote:
> QP object is created using rdma_cm api, therefore the destruction
> should use the same api for symmetry.
>
> Signed-off-by: Max Gurtovoy <maxg at mellanox.com>
Thanks, applied to nvme-4.15.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-07 19:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-06 14:18 [PATCH 1/1] nvme-rdma: Fix nvme_rdma_create_queue_ib error flow Max Gurtovoy
2017-11-07 19:22 ` Christoph Hellwig
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.