]> err.no Git - linux-2.6/commitdiff
[IA64] MCA recovery: Bump reference count on bad pages
authorRuss Anderson <rja@efs.americas.sgi.com>
Fri, 4 Nov 2005 22:58:28 +0000 (16:58 -0600)
committerTony Luck <tony.luck@intel.com>
Tue, 8 Nov 2005 18:04:16 +0000 (10:04 -0800)
When a page has a memory uncorrectable ECC error, the recovery
code wants to prevent the page from being reused.  This change
bumps the reference count to prevent the page from getting back
on the free list.

Signed-off-by: Russ Anderson (rja@sgi.com)
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/mca_drv.c

index 6ff32d4faf81b0a2bc5c52f093f605a7b38963b6..eb39bc9c133bd05dbf5adba4017dc286d56e473a 100644 (file)
@@ -108,6 +108,7 @@ mca_page_isolate(unsigned long paddr)
                return ISOLATE_NG;
 
        /* add attribute 'Reserved' and register the page */
+       get_page(p);
        SetPageReserved(p);
        page_isolate[num_page_isolate++] = p;