lkml.org 
[lkml]   [2011]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] Fix the wrong corrupted page information of hugetlb page.
Hi,

> @@ -991,18 +995,32 @@ int __memory_failure(unsigned long pfn, int trapno, int flags)
> action_result(pfn, "free buddy", DELAYED);
> return 0;
> } else if (PageHuge(hpage)) {
> - /*
> - * Check "just unpoisoned", "filter hit", and
> - * "race with other subpage."
> - */
> lock_page_nosync(hpage);
> - if (!PageHWPoison(p)
> - || (hwpoison_filter(p) && TestClearPageHWPoison(p))
> - || (p != hpage && TestSetPageHWPoison(hpage))) {
> - atomic_long_sub(nr_pages, &mce_bad_pages);
> + /* Check "just unpoisoned". */
> + if (!PageHWPoison(hpage)) {
^^^^^
Isn't this "p" (as you changed in patch 2/3) ?

-- Naoya Horiguchi


\
 
 \ /
  Last update: 2011-01-21 06:17    [W:0.057 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site