Commit ab2395bb authored by Alexey Marchuk's avatar Alexey Marchuk Committed by Tomasz Zawadzki
Browse files

nvmf/rdma: Fix check for pool capacity



Data WR pool can be configured and default value was changed,
but check for the pool capacity was not updated and as result
a wrong error message is printed

Signed-off-by: default avatarAlexey Marchuk <alexeymar@nvidia.com>
Change-Id: Ib50664ff972a20fac6e6f718132b80707b9f6d6b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23280


Reviewed-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 93c192c4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2880,8 +2880,7 @@ nvmf_rdma_destroy(struct spdk_nvmf_transport *transport,
	}

	if (rtransport->data_wr_pool != NULL) {
		if (spdk_mempool_count(rtransport->data_wr_pool) !=
		    (transport->opts.max_queue_depth * SPDK_NVMF_MAX_SGL_ENTRIES)) {
		if (spdk_mempool_count(rtransport->data_wr_pool) != transport->opts.data_wr_pool_size) {
			SPDK_ERRLOG("transport wr pool count is %zu but should be %u\n",
				    spdk_mempool_count(rtransport->data_wr_pool),
				    transport->opts.max_queue_depth * SPDK_NVMF_MAX_SGL_ENTRIES);