CC: Andi Kleen Signed-off-by: Wu Fengguang --- mm/memory.c | 4 ++++ 1 file changed, 4 insertions(+) --- linux-mm.orig/mm/memory.c 2009-11-24 16:50:44.000000000 +0800 +++ linux-mm/mm/memory.c 2009-11-30 10:35:39.000000000 +0800 @@ -2540,6 +2540,10 @@ static int do_swap_page(struct mm_struct ret = VM_FAULT_MAJOR; count_vm_event(PGMAJFAULT); } else if (PageHWPoison(page)) { + /* + * hwpoisoned dirty swapcache pages are kept for killing + * owner processes (which may be unknown at hwpoison time) + */ ret = VM_FAULT_HWPOISON; delayacct_clear_flag(DELAYACCT_PF_SWAPIN); goto out_release; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/