diff options
author | Chen, Gong <gong.chen@linux.intel.com> | 2014-07-28 02:51:00 -0400 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2014-10-21 22:06:50 +0200 |
commit | 6dc52cbe0b181818450fc1de4c0c850226ce0e68 (patch) | |
tree | be5e6444b05a3113f7d40484847ef78d54d62de5 /mm/memory-failure.c | |
parent | 8f7c31f6cd499877aa6b96decd31b406a6cd4ddf (diff) | |
download | op-kernel-dev-6dc52cbe0b181818450fc1de4c0c850226ce0e68.zip op-kernel-dev-6dc52cbe0b181818450fc1de4c0c850226ce0e68.tar.gz |
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>
Diffstat (limited to 'mm/memory-failure.c')
-rw-r--r-- | mm/memory-failure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 8639f6b..b852b10 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -860,7 +860,6 @@ static int page_action(struct page_state *ps, struct page *p, int count; result = ps->action(p, pfn); - action_result(pfn, ps->msg, result); count = page_count(p) - 1; if (ps->action == me_swapcache_dirty && result == DELAYED) @@ -871,6 +870,7 @@ static int page_action(struct page_state *ps, struct page *p, pfn, ps->msg, count); result = FAILED; } + action_result(pfn, ps->msg, result); /* Could do more checks here if page looks ok */ /* |