MCA recovery: Bump reference count on bad pages
PATCH 1/1 MCA recovery: Bump reference count on bad pages
[patch] MCA recovery: Bump reference count on bad pages.
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.
--------------------------------------------------------------
arch/ia64/kernel/mca_drv.c | 1 + 1 files changed, 1 insertion(+)
Index: test/arch/ia64/kernel/mca_drv.c
=================================--- test.orig/arch/ia64/kernel/mca_drv.c 2005-11-04 11:10:59.376035037 -0600
+++ test/arch/ia64/kernel/mca_drv.c 2005-11-04 11:11:48.404099117 -0600
@@ -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;
Signature · 2 lines
Russ Anderson, OS RAS/Partitioning Project Lead SGI - Silicon Graphics Inc [email protected]