public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <3C980990.1C6B232A@zip.com.au> (raw)



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

-

             reply	other threads:[~2002-03-20  4:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-20  4:01 Andrew Morton [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C980990.1C6B232A@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox