Commit:     a2f92ee7e704440995cf5474f4cc7b268bf380e0
Parent:     9e86943b6c74f214ce0516d56e55636d52252e19
Author:     Christoph Lameter <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 22 14:01:57 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 19:52:47 2007 -0700

    SLUB: do not fail on broken memory configurations
    Print a big fat warning and do what is necessary to continue if a node is
    marked as up (meaning either node is online (upstream) or node has memory
    (Andrew's tree)) but allocations from the node do not succeed.
    Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 mm/slub.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index 0c106d7..04151da 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1877,9 +1877,16 @@ static struct kmem_cache_node * __init 
early_kmem_cache_node_alloc(gfp_t gfpflag
        BUG_ON(kmalloc_caches->size < sizeof(struct kmem_cache_node));
-       page = new_slab(kmalloc_caches, gfpflags | GFP_THISNODE, node);
+       page = new_slab(kmalloc_caches, gfpflags, node);
+       if (page_to_nid(page) != node) {
+               printk(KERN_ERR "SLUB: Unable to allocate memory from "
+                               "node %d\n", node);
+               printk(KERN_ERR "SLUB: Allocating a useless per node structure "
+                               "in order to be able to continue\n");
+       }
        n = page->freelist;
        page->freelist = get_freepointer(kmalloc_caches, n);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to