public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* aa-160-lru_release_check
@ 2002-03-20  4:01 Andrew Morton
  2002-03-20 16:09 ` aa-160-lru_release_check Adrian Bunk
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2002-03-20  4:01 UTC (permalink / raw)
  To: lkml



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();

-

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-03-20 20:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-20  4:01 aa-160-lru_release_check Andrew Morton
2002-03-20 16:09 ` aa-160-lru_release_check Adrian Bunk
2002-03-20 19:16   ` aa-160-lru_release_check Mike Fedyk
2002-03-20 19:28   ` aa-160-lru_release_check Andrew Morton
2002-03-20 19:38     ` aa-160-lru_release_check Jeff Garzik
2002-03-20 20:02     ` aa-160-lru_release_check Dave Jones
2002-03-20 20:42     ` aa-160-lru_release_check Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox