]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] slab: fix handling of pages from foreign NUMA nodes
authorChristoph Lameter <clameter@engr.sgi.com>
Fri, 23 Sep 2005 04:44:02 +0000 (21:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Sep 2005 05:17:35 +0000 (22:17 -0700)
commit7271efeb2ceccefe5e1495b7c415eec374a0255f
treec97b81660f38ff7a06196dc47b92bd5f44c26305
parent8840c839215d328ffb8b11f9007422de1f8329c3
[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 <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c