lkml.org 
[lkml]   [2006]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Slab: Node rotor for freeing alien caches and remote per cpu pages.
Fix two issues in the patch as suggested by Kiran:

1. next_node() cannot return a node number >MAX_NUMNODES. So use ==

2. Node online map should not be empty during bootup so we can
skip the code that I added to deal with that situation.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.16-rc4/mm/slab.c
===================================================================
--- linux-2.6.16-rc4.orig/mm/slab.c 2006-02-23 10:20:16.000000000 -0800
+++ linux-2.6.16-rc4/mm/slab.c 2006-02-23 13:28:34.000000000 -0800
@@ -803,7 +803,7 @@ static void init_reap_node(int cpu)
int node;

node = next_node(cpu_to_node(cpu), node_online_map);
- if (node >= MAX_NUMNODES)
+ if (node == MAX_NUMNODES)
node = 0;

__get_cpu_var(reap_node) = node;
@@ -820,15 +820,8 @@ static void next_reap_node(void)
drain_node_pages(node);

node = next_node(node, node_online_map);
- if (unlikely(node >= MAX_NUMNODES)) {
+ if (unlikely(node >= MAX_NUMNODES))
node = first_node(node_online_map);
- /*
- * If the node_online_map is empty (early boot) then
- * only use node zero.
- */
- if (node >= MAX_NUMNODES)
- node = 0;
- }
__get_cpu_var(reap_node) = node;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-23 22:56    [W:0.222 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site