From 2f1ac3644a4dfd5502c568c74b89b9e42761ad31 Mon Sep 17 00:00:00 2001 From: Evgeniy Kochetov Date: Wed, 12 Dec 2018 13:57:22 +0000 Subject: [PATCH] nvmf/rdma: Fix refcnt check on RDMA QP destroy Check for QP reference counter in RDMA QP destroy function was wrong and QP resources were never released. Change-Id: I6ab0ce39452e8263f89589d138c90f749516ebb1 Signed-off-by: Evgeniy Kochetov Signed-off-by: Sasha Kotchubievsky Reviewed-on: https://review.gerrithub.io/436974 (master) Reviewed-on: https://review.gerrithub.io/437348 Tested-by: SPDK CI Jenkins Reviewed-by: Seth Howell Reviewed-by: Jim Harris Reviewed-by: Ben Walker Chandler-Test-Pool: SPDK Automated Test System --- lib/nvmf/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nvmf/rdma.c b/lib/nvmf/rdma.c index 26bd1b1320..46f60be15b 100644 --- a/lib/nvmf/rdma.c +++ b/lib/nvmf/rdma.c @@ -584,7 +584,7 @@ spdk_nvmf_rdma_qpair_destroy(struct spdk_nvmf_rdma_qpair *rqpair) { int qd; - if (rqpair->refcnt == 0) { + if (rqpair->refcnt != 0) { return; }