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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexey Dobriyan <adobriyan@...>
Cc: <linux-kernel@...>, <linux-mm@...>, Rik van Riel <riel@...>, Nick Piggin <nickpiggin@...>
Date: Monday, June 9, 2008 - 6: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, 8:39 am)
Re: 2.6.26-rc5-mm1, Byron Bradley, (Mon Jun 9, 6:11 pm)
2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Alexey Dobriyan, (Mon Jun 9, 4:45 pm)
Re: 2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Andrew Morton, (Mon Jun 9, 6:37 pm)
Re: 2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Nick Piggin, (Mon Jun 9, 10:21 pm)
Re: 2.6.26-rc5-mm1: kernel BUG at mm/filemap.c:575!, Alexey Dobriyan, (Mon Jun 9, 5:40 pm)
Re: 2.6.26-rc5-mm1, Balbir Singh, (Mon Jun 9, 1:27 pm)
Re: 2.6.26-rc5-mm1, Mariusz Kozlowski, (Mon Jun 9, 3:14 pm)
Re: 2.6.26-rc5-mm1, Andrew Morton, (Mon Jun 9, 5:48 pm)
Re: 2.6.26-rc5-mm1, Mariusz Kozlowski, (Tue Jun 10, 12:57 am)
Re: 2.6.26-rc5-mm1, Andrew Morton, (Tue Jun 10, 1:01 am)
Re: 2.6.26-rc5-mm1, Peter 1 Oberparleiter, (Tue Jun 10, 4:39 am)
Re: 2.6.26-rc5-mm1, Mariusz Kozlowski, (Tue Jun 17, 6:26 pm)
Re: 2.6.26-rc5-mm1, Peter Oberparleiter, (Wed Jun 18, 4:35 am)