Re: [kernel] kiobuf question

Andrea Arcangeli (andrea@suse.de)
Thu, 15 Nov 2001 18:14:45 +0100


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
-
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/