From 34fe53ce33d996d32ba8c103d5ddd6c0accfb587 Mon Sep 17 00:00:00 2001 From: Christoph Lameter Date: Mon, 7 Jan 2008 22:27:32 -0800 Subject: [PATCH] SLAB: Fallback if local node has no ZONE_NORMAL memory Fallback to another node if the local node does not have ZONE_NORMAL memory. This is necessary if a node only has highmem. Signed-off-by: Christoph Lameter --- mm/slab.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 40c00da..b9bc8cb 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2981,7 +2981,10 @@ retry: } l3 = cachep->nodelists[node]; - BUG_ON(ac->avail > 0 || !l3); + if (!l3) + return NULL; + + BUG_ON(ac->avail > 0); spin_lock(&l3->list_lock); /* See if we can refill from the shared array */ -- debian.1.5.3.7.1-dirty