RAS, HWPOISON: Fix wrong error recovery status
authorChen, Gong <gong.chen@linux.intel.com>
Mon, 28 Jul 2014 06:51:00 +0000 (02:51 -0400)
committerBorislav Petkov <bp@suse.de>
Tue, 21 Oct 2014 20:06:50 +0000 (22:06 +0200)
commit6dc52cbe0b181818450fc1de4c0c850226ce0e68
treebe5e6444b05a3113f7d40484847ef78d54d62de5
parent8f7c31f6cd499877aa6b96decd31b406a6cd4ddf
RAS, HWPOISON: Fix wrong error recovery status

When Uncorrected error happens, if the poisoned page is referenced
by more than one user after error recovery, the recovery is not
successful. But currently the display result is wrong.
Before this patch:

MCE 0x44e336: dirty mlocked LRU page recovery: Recovered
MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered

After this patch:

MCE 0x44e336: dirty mlocked LRU page recovery: Failed
MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered

Signed-off-by: Chen, Gong <gong.chen@linux.intel.com>
Link: http://lkml.kernel.org/r/1406530260-26078-3-git-send-email-gong.chen@linux.intel.com
Acked-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
mm/memory-failure.c