mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm: slab cache interleave rotor fix
@ 2006-03-19  8:58 Paul Jackson
  2006-03-20 15:37 ` Christoph Lameter
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Jackson @ 2006-03-19  8:58 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Paul Jackson, linux-kernel, Christoph Lameter

From: Paul Jackson <pj@sgi.com>

The alien cache rotor in mm/slab.c assumes that the first online
node is node 0.  Eventually for some archs, especially with hotplug,
this will no longer be true.

Fix the interleave rotor to handle the general case of node numbering.

Signed-off-by: Paul Jackson <pj@sgi.com>

---

 mm/slab.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- 2.6.16-rc6-mm2.orig/mm/slab.c	2006-03-18 21:40:42.465283732 -0800
+++ 2.6.16-rc6-mm2/mm/slab.c	2006-03-18 21:53:10.440761398 -0800
@@ -835,7 +835,7 @@ static void init_reap_node(int cpu)
 
 	node = next_node(cpu_to_node(cpu), node_online_map);
 	if (node == MAX_NUMNODES)
-		node = 0;
+		node = first_node(node_online_map);
 
 	__get_cpu_var(reap_node) = node;
 }

-- 
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <pj@sgi.com> 1.650.933.1373

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-20 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-19  8:58 [PATCH] mm: slab cache interleave rotor fix Paul Jackson
2006-03-20 15:37 ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome