]> git.baikalelectronics.ru Git - kernel.git/commit
HWPOISON: Add unpoisoning support
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 16 Dec 2009 11:19:58 +0000 (12:19 +0100)
committerAndi Kleen <ak@linux.intel.com>
Wed, 16 Dec 2009 11:19:58 +0000 (12:19 +0100)
commit541f6922aa3140d83f8a286fce19d2a5ff462c94
tree7c5021386dedea0d12f8a05b00c5267c4d28e426
parent4ad0386f426c8fa4a0bf2446f4ce7113479ddbb3
HWPOISON: Add unpoisoning support

The unpoisoning interface is useful for stress testing tools to
reclaim poisoned pages (to prevent OOM)

There is no hardware level unpoisioning, so this
cannot be used for real memory errors, only for software injected errors.

Note that it may leak pages silently - those who have been removed from
LRU cache, but not isolated from page cache/swap cache at hwpoison time.
Especially the stress test of dirty swap cache pages shall reboot system
before exhausting memory.

AK: Fix comments, add documentation, add printks, rename symbol

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Documentation/vm/hwpoison.txt
include/linux/mm.h
include/linux/page-flags.h
mm/hwpoison-inject.c
mm/memory-failure.c