[patch] MCA recovery: Bump reference count on bad pages

From: Russ Anderson <rja_at_efs.americas.sgi.com>
Date: 2005-11-05 09:58:28
[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.

Signed-off-by: Russ Anderson (rja@sgi.com)

--------------------------------------------------------------
 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;
 
-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@sgi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Nov 05 09:59:06 2005

This archive was generated by hypermail 2.1.8 : 2005-11-05 09:59:13 EST