From: Andrew Morton <akpm@zip.com.au> To: lkml <linux-kernel@vger.kernel.org> Subject: aa-160-lru_release_check Date: Tue, 19 Mar 2002 20:01:20 -0800 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/