From: Mathieu Desnoyers Date: Tue, 8 May 2018 15:58:25 +0000 (-0400) Subject: lttng-tp-mempool: perform node-local allocation X-Git-Tag: v2.11.0-rc1~51 X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=4b691a7da344d131db8786135f60ddca95956457 lttng-tp-mempool: perform node-local allocation Signed-off-by: Mathieu Desnoyers --- 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;