lttng-tp-mempool: perform node-local allocation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 May 2018 15:58:25 +0000 (11:58 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 8 May 2018 16:01:54 +0000 (12:01 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-tp-mempool.c

index d984bd4511b209fbb528c8b19102b4538a1df4b8..b3dc50e66ae0f99c0c4b1a767556a3b35a747587 100644 (file)
@@ -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;
This page took 0.026332 seconds and 4 git commands to generate.