From: Christoph Lameter Date: Fri, 23 Sep 2005 04:44:02 +0000 (-0700) Subject: [PATCH] slab: fix handling of pages from foreign NUMA nodes X-Git-Tag: v2.6.14-rc3~51^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff69416e6323fe9d38c42a06ebdefeb58bbe9336;p=pandora-kernel.git [PATCH] slab: fix handling of pages from foreign NUMA nodes The numa slab allocator may allocate pages from foreign nodes onto the lists for a particular node if a node runs out of memory. Inspecting the slab->nodeid field will not reflect that the page is now in use for the slabs of another node. This patch fixes that issue by adding a node field to free_block so that the caller can indicate which node currently uses a slab. Also removes the check for the current node from kmalloc_cache_node since the process may shift later to another node which may lead to an allocation on another node than intended. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed