aa-160-lru_release_check

From: Andrew Morton (akpm@zip.com.au)
Date: Tue Mar 19 2002 - 23:01:20 EST


Hugh's much-discussed check for releasing pages which are still on the LRU.

=====================================

--- 2.4.19-pre3/mm/page_alloc.c~aa-160-lru_release_check Tue Mar 19 19:49:02 2002
+++ 2.4.19-pre3-akpm/mm/page_alloc.c Tue Mar 19 19:49:02 2002
@@ -102,8 +102,11 @@ static void __free_pages_ok (struct page
         /* Yes, think what happens when other parts of the kernel take
          * a reference to a page in order to pin it for io. -ben
          */
- if (PageLRU(page))
+ if (PageLRU(page)) {
+ if (unlikely(in_interrupt()))
+ BUG();
                 lru_cache_del(page);
+ }
 
         if (page->buffers)
                 BUG();

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:20 EST