From 4b691a7da344d131db8786135f60ddca95956457 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 8 May 2018 11:58:25 -0400 Subject: [PATCH] lttng-tp-mempool: perform node-local allocation Signed-off-by: Mathieu Desnoyers --- lttng-tp-mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lttng-tp-mempool.c b/lttng-tp-mempool.c index d984bd45..b3dc50e6 100644 --- a/lttng-tp-mempool.c +++ b/lttng-tp-mempool.c @@ -70,8 +70,8 @@ int lttng_tp_mempool_init(void) for (i = 0; i < LTTNG_TP_MEMPOOL_NR_BUF_PER_CPU; i++) { struct lttng_tp_buf_entry *entry; - entry = kzalloc(sizeof(struct lttng_tp_buf_entry), - GFP_KERNEL); + entry = kzalloc_node(sizeof(struct lttng_tp_buf_entry), + GFP_KERNEL, cpu_to_node(cpu)); if (!entry) { ret = -ENOMEM; goto error_free_pool; -- 2.34.1