Skip to contentSkip to conversation

slub-search-partial-list-on-numa_mem_id-instead-of-numa_node_id.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 9, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] slub-search-partial-list-on-numa_mem_id-instead-of-numa_node_id.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 09 Jun 2014 12:27:57 -0700

The patch titled
Subject: slub: search partial list on numa_mem_id(), instead of numa_node_id()
has been removed from the -mm tree. Its filename was
slub-search-partial-list-on-numa_mem_id-instead-of-numa_node_id.patch

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

------------------------------------------------------
From: Joonsoo Kim <[email protected]>
Subject: slub: search partial list on numa_mem_id(), instead of numa_node_id()

Currently, if allocation constraint to node is NUMA_NO_NODE, we search a partial slab on numa_node_id() node. This doesn't work properly on a system having memoryless nodes, since it can have no memory on that node so there must be no partial slab on that node.

On that node, page allocation always falls back to numa_mem_id() first. So searching a partial slab on numa_node_id() in that case is the proper solution for the memoryless node case.

---

 mm/slub.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slub.c renamed from mm/slub.c~slub-search-partial-list-on-numa_mem_id-instead-of-numa_node_id +1 -1
diff -puN mm/slub.c~slub-search-partial-list-on-numa_mem_id-instead-of-numa_node_id mm/slub.c
@@ -1726,7 +1726,7 @@ static void *get_partial(struct kmem_cac
 		struct kmem_cache_cpu *c)
 {
 	void *object;
-	int searchnode = (node == NUMA_NO_NODE) ? numa_node_id() : node;
+	int searchnode = (node == NUMA_NO_NODE) ? numa_mem_id() : node;
 
 	object = get_partial_node(s, get_node(s, searchnode), c, flags);
 	if (object || node != NUMA_NO_NODE)

_

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

origin.patch mm-compactionc-isolate_freepages_block-small-tuneup.patch linux-next.patch page-owners-correct-page-order-when-to-free-page.patch