Re: 2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Monday, June 9, 2008 - 3:37 pm

On Tue, 10 Jun 2008 00:45:59 +0400
Alexey Dobriyan <adobriyan@gmail.com> wrote:


We unlocked an already-unlocked page.

Although pretty straightforward, shrink_page_list() is, umm, large.

This part:

		if (PagePrivate(page)) {
			if (!try_to_release_page(page, sc->gfp_mask))
				goto activate_locked;
			if (!mapping && page_count(page) == 1) {
				unlock_page(page);
				if (put_page_testzero(page))
					goto free_it;
				else {
					nr_reclaimed++;
					continue;
				}
			}
		}

		if (!mapping || !__remove_mapping(mapping, page))
			goto keep_locked;

free_it:
		unlock_page(page);

has a very obvious double-unlock.  It was added by the obviously-buggy,
reviewed-by-everyone mm-speculative-page-references.patch - part of
Nick's lockless pagecache work.

argh.  This means that I need to a) stop merging anything and b) be
sent a fix really fast or drop them all and fix up all the fallout and
c) get -mm2 out asap to that someone can test all the other
page-reclaim changes.  argh.

Also, what's up with that "continue" which got added there?  We just
leave the page floating about without reattaching it to any LRU? 
Where's the code comment explaining wth is going on in there?

More argh.  
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-rc5-mm1, Andrew Morton, (Mon Jun 9, 5:39 am)
Re: 2.6.26-rc5-mm1, Balbir Singh, (Mon Jun 9, 10:27 am)
Re: 2.6.26-rc5-mm1, Mariusz Kozlowski, (Mon Jun 9, 12:14 pm)
[PATCH] Re: 2.6.26-rc5-mm1 - fix parenthesis in drivers/ne ..., Mariusz Kozlowski, (Mon Jun 9, 12:20 pm)
2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Alexey Dobriyan, (Mon Jun 9, 1:45 pm)
Re: 2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Alexey Dobriyan, (Mon Jun 9, 2:40 pm)
Re: 2.6.26-rc5-mm1, Andrew Morton, (Mon Jun 9, 2:48 pm)
Re: 2.6.26-rc5-mm1, Byron Bradley, (Mon Jun 9, 3:11 pm)
Re: 2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Andrew Morton, (Mon Jun 9, 3:37 pm)
Re: 2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Nick Piggin, (Mon Jun 9, 7:21 pm)
Re: 2.6.26-rc5-mm1, Mariusz Kozlowski, (Mon Jun 9, 9:57 pm)
Re: 2.6.26-rc5-mm1, Andrew Morton, (Mon Jun 9, 10:01 pm)
Re: 2.6.26-rc5-mm1, Peter 1 Oberparleiter, (Tue Jun 10, 1:39 am)
Re: [BUG] 2.6.26-rc5-mm1- kernel BUG at arch/x86/kernel/io ..., Kamalesh Babulal, (Sun Jun 15, 10:16 am)
Re: 2.6.26-rc5-mm1, Mariusz Kozlowski, (Tue Jun 17, 3:26 pm)
Re: 2.6.26-rc5-mm1, Peter Oberparleiter, (Wed Jun 18, 1:35 am)