lkml.org 
[lkml]   [2010]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 09/10] HWPOISON, hugetlb: fix unpoison for hugepage
    Date
    Currently unpoisoning hugepages doesn't work correctly because
    clearing PG_HWPoison is done outside if (TestClearPageHWPoison).
    This patch fixes it.

    Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
    ---
    mm/memory-failure.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git v2.6.36-rc2/mm/memory-failure.c v2.6.36-rc2/mm/memory-failure.c
    index 1d0392d..483a59f 100644
    --- v2.6.36-rc2/mm/memory-failure.c
    +++ v2.6.36-rc2/mm/memory-failure.c
    @@ -1202,9 +1202,9 @@ int unpoison_memory(unsigned long pfn)
    pr_debug("MCE: Software-unpoisoned page %#lx\n", pfn);
    atomic_long_sub(nr_pages, &mce_bad_pages);
    freeit = 1;
    + if (PageHuge(page))
    + clear_page_hwpoison_huge_page(page);
    }
    - if (PageHuge(p))
    - clear_page_hwpoison_huge_page(page);
    unlock_page(page);

    put_page(page);
    --
    1.7.2.2


    \
     
     \ /
      Last update: 2010-09-08 03:33    [W:0.022 / U:0.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site