From 824ebef122153a03925ae0ed211b4e8568d1c8db Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Sun, 6 May 2007 14:49:58 -0700 Subject: [PATCH] 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-format-patch failed