Skip to contentSkip to conversation

kcov-allocate-per-cpu-memory-on-the-relevant-node.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kcov: allocate per-CPU memory on the relevant node
has been removed from the -mm tree. Its filename was
kcov-allocate-per-cpu-memory-on-the-relevant-node.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Sebastian Andrzej Siewior <[email protected]>
Subject: kcov: allocate per-CPU memory on the relevant node

During boot kcov allocates per-CPU memory which is used later if remote/ softirq processing is enabled.

Allocate the per-CPU memory on the CPU local node to avoid cross node memory access.

---

 kernel/kcov.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/kcov.c renamed from kernel/kcov.c~kcov-allocate-per-cpu-memory-on-the-relevant-node +2 -2
@@ -1034,8 +1034,8 @@ static int __init kcov_init(void)
 	int cpu;
 
 	for_each_possible_cpu(cpu) {
-		void *area = vmalloc(CONFIG_KCOV_IRQ_AREA_SIZE *
-				sizeof(unsigned long));
+		void *area = vmalloc_node(CONFIG_KCOV_IRQ_AREA_SIZE *
+				sizeof(unsigned long), cpu_to_node(cpu));
 		if (!area)
 			return -ENOMEM;
 		per_cpu_ptr(&kcov_percpu_data, cpu)->irq_area = area;

_

Patches currently in -mm which might be from [email protected] are