public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [kernel] kiobuf question
       [not found] <20011115093209.A3898@bytesex.org>
@ 2001-11-15 17:14 ` Andrea Arcangeli
  0 siblings, 0 replies; only message in thread
From: Andrea Arcangeli @ 2001-11-15 17:14 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: Linus Torvalds, Marcelo Tosatti

On Thu, Nov 15, 2001 at 09:32:09AM +0100, Gerd Knorr wrote:
>      83         if (PageLRU(page))
>      84                 BUG();			<<================

this is a VM bug, not a bttv bug.

One simple fix is to replace __free_page(page) in unmap_kiobuf with
page_cache_release(page). that will cure it.

But a better fix that I probably prefer for robusteness is to change in
page_alloc.c __free_pages with page_cache_release, so that we always do
this:

		if (PageLRU(page))
			lru_cache_del(page);

while freeing pages.

Andrea

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-15 17:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20011115093209.A3898@bytesex.org>
2001-11-15 17:14 ` [kernel] kiobuf question Andrea Arcangeli

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