Re: [jffs2] [rfc] fix write deadlock regression

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nick Piggin <npiggin@...>
Cc: Jason Lunz <lunz@...>, lkml <linux-kernel@...>, <jffs-dev@...>, Hugh Dickins <hugh@...>, Andrew Morton <akpm@...>
Date: Sunday, September 2, 2007 - 8:13 am

Jason, thank you _so_ much for finding the underlying cause of this.

On Sun, 2007-09-02 at 06:20 +0200, Nick Piggin wrote:

jffs2_readpage() is synchronous -- there's no chance that the page won't
be up to date. We're doing this for garbage collection -- if there are
many log entries covering a single page of data, we want to write out a
single replacement which covers the whole page, obsoleting the previous
suboptimal representation of the same data.


I think Jason's patch is the best answer for the moment. At some point
in the very near future I want to improve the RAM usage and compression
ratio by dropping the rule that data nodes may not cross page boundaries
-- in which case garbage collection will need to do something other than
reading the page using read_cache_page() and then writing it out again;
it'll probably need to end up using its own internal buffer. But for
now, Jason's patch looks good.

Thanks.

-- 
dwmw2

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
jffs2 deadlock introduced in linux 2.6.22.5, Jason Lunz, (Thu Aug 30, 2:23 pm)
Re: jffs2 deadlock introduced in linux 2.6.22.5, Jason Lunz, (Fri Aug 31, 5:26 pm)
[jffs2] [rfc] fix write deadlock regression, Jason Lunz, (Sat Sep 1, 3:06 pm)
Re: [jffs2] [rfc] fix write deadlock regression, Nick Piggin, (Sun Sep 2, 12:20 am)
Re: [jffs2] [rfc] fix write deadlock regression, David Woodhouse, (Sun Sep 2, 8:13 am)
Re: [jffs2] [rfc] fix write deadlock regression, Nick Piggin, (Sun Sep 2, 9:20 am)
Re: [jffs2] [rfc] fix write deadlock regression, David Woodhouse, (Sun Sep 2, 9:48 am)
Re: [jffs2] [rfc] fix write deadlock regression, Nick Piggin, (Sun Sep 2, 10:17 am)
Re: [jffs2] [rfc] fix write deadlock regression, David Woodhouse, (Sun Sep 2, 12:15 pm)
Re: jffs2 deadlock introduced in linux 2.6.22.5, Jesper Juhl, (Fri Aug 31, 5:32 pm)