فهرست منبع

[IA64] 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)
Signed-off-by: Tony Luck <tony.luck@intel.com>
Russ Anderson 19 سال پیش
والد
کامیت
cbb9214434
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      arch/ia64/kernel/mca_drv.c

+ 1 - 0
arch/ia64/kernel/mca_drv.c

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