iscsi: allocate PDU mempools with memory from any socket
Right now they can only use memory from the socket that performed iSCSI static initialization, which doesn't make sense. Those mempools can be used from a different socket as well, so don't restrict them to any specific one. Change-Id: I0def1c554ed6227ab0f0a7be107c4c1c61f40c96 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450055 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
1a2de82456
commit
0acb123aa4
@ -164,7 +164,7 @@ iscsi_initialize_pdu_pool(void)
|
||||
iscsi->pdu_immediate_data_pool = spdk_mempool_create_ctor("PDU_immediate_data_Pool",
|
||||
IMMEDIATE_DATA_POOL_SIZE(iscsi),
|
||||
imm_mobj_size, 256,
|
||||
spdk_env_get_socket_id(spdk_env_get_current_core()),
|
||||
SPDK_ENV_SOCKET_ID_ANY,
|
||||
mobj_ctor, NULL);
|
||||
if (!iscsi->pdu_immediate_data_pool) {
|
||||
SPDK_ERRLOG("create PDU immediate data pool failed\n");
|
||||
@ -174,7 +174,7 @@ 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, 256,
|
||||
spdk_env_get_socket_id(spdk_env_get_current_core()),
|
||||
SPDK_ENV_SOCKET_ID_ANY,
|
||||
mobj_ctor, NULL);
|
||||
if (!iscsi->pdu_data_out_pool) {
|
||||
SPDK_ERRLOG("create PDU data out pool failed\n");
|
||||
|
Loading…
Reference in New Issue
Block a user