From: Akinobu Mita Date: Sun, 6 May 2007 21:49:58 +0000 (-0700) Subject: fault injection: fix failslab with CONFIG_NUMA X-Git-Tag: v2.6.22-rc1~941 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=824ebef122153a03925ae0ed211b4e8568d1c8db;p=pandora-kernel.git fault injection: fix failslab with CONFIG_NUMA Currently failslab injects failures into ____cache_alloc(). But with enabling CONFIG_NUMA it's not enough to let actual slab allocator functions (kmalloc, kmem_cache_alloc, ...) return NULL. This patch moves fault injection hook inside of __cache_alloc() and __cache_alloc_node(). These are lower call path than ____cache_alloc() and enable to inject faulures to slab allocators with CONFIG_NUMA. Acked-by: Pekka Enberg Signed-off-by: Akinobu Mita Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed