From d39e7f22b14c4529e936c615d81d62b57e55c9a2 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Tue, 12 Jun 2018 02:35:50 +0800 Subject: [PATCH] iscsi: check the task_pool size It will also help the debug for the memory leak of iSCSI tasks. Change-Id: I524962ae1e3278aaf6aca12cc85a5e0f616c3001 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/414623 Tested-by: SPDK Automated Test System Reviewed-by: Shuhei Matsumoto Reviewed-by: Daniel Verkamp Reviewed-by: Jim Harris --- lib/iscsi/iscsi_subsystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iscsi/iscsi_subsystem.c b/lib/iscsi/iscsi_subsystem.c index 75ca7f1c5..3f19469a1 100644 --- a/lib/iscsi/iscsi_subsystem.c +++ b/lib/iscsi/iscsi_subsystem.c @@ -271,7 +271,7 @@ spdk_iscsi_check_pools(void) spdk_iscsi_check_pool(iscsi->session_pool, SESSION_POOL_SIZE(iscsi)); spdk_iscsi_check_pool(iscsi->pdu_immediate_data_pool, IMMEDIATE_DATA_POOL_SIZE(iscsi)); spdk_iscsi_check_pool(iscsi->pdu_data_out_pool, DATA_OUT_POOL_SIZE(iscsi)); - /* TODO: check the task_pool on exit */ + spdk_iscsi_check_pool(iscsi->task_pool, DEFAULT_TASK_POOL_SIZE); } static void