HWPOISON, hugetlb: isolate corrupted hugepage
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Fri, 28 May 2010 00:29:20 +0000 (09:29 +0900)
committerAndi Kleen <ak@linux.intel.com>
Wed, 11 Aug 2010 07:22:46 +0000 (09:22 +0200)
commit93f70f900da36fbc19c13c2aa04b2e468c8d00fb
tree7868f891bca0ed18c9806771a68feac0b4010517
parentc9fbdd5f131440981b124883656ea21fb12cde4a
HWPOISON, hugetlb: isolate corrupted hugepage

If error hugepage is not in-use, we can fully recovery from error
by dequeuing it from freelist, so return RECOVERY.
Otherwise whether or not we can recovery depends on user processes,
so return DELAYED.

Dependency:
  "HWPOISON, hugetlb: enable error handling path for hugepage"

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
include/linux/hugetlb.h
mm/hugetlb.c
mm/memory-failure.c