From 3bce3519166fb026c99b73cca7ecb23d50a0dd60 Mon Sep 17 00:00:00 2001 From: GangCao Date: Tue, 20 Mar 2018 03:49:53 -0400 Subject: [PATCH] iscsi: enable per-core cache for PDU data-out pool With the preferred per core operation for the lockless consideration, having some per core cache instead of the shared gloal cache will help the performance. Change-Id: Ib3cfaac5bad7062b15643d5b151d4c7c6051ddf1 Signed-off-by: GangCao Reviewed-on: https://review.gerrithub.io/404533 Tested-by: SPDK Automated Test System Reviewed-by: Changpeng Liu 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 880a8f40b..3b9710560 100644 --- a/lib/iscsi/iscsi_subsystem.c +++ b/lib/iscsi/iscsi_subsystem.c @@ -369,7 +369,7 @@ static int spdk_iscsi_initialize_pdu_pool(void) iscsi->pdu_data_out_pool = spdk_mempool_create_ctor("PDU_data_out_Pool", DATA_OUT_POOL_SIZE(iscsi), - dout_mobj_size, 0, + dout_mobj_size, 256, spdk_env_get_socket_id(spdk_env_get_current_core()), spdk_mobj_ctor, NULL); if (!iscsi->pdu_data_out_pool) {