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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Woodhouse <dwmw2@...>
Cc: Jason Lunz <lunz@...>, lkml <linux-kernel@...>, <jffs-dev@...>, Hugh Dickins <hugh@...>, Andrew Morton <akpm@...>
Date: Sunday, September 2, 2007 - 10:17 am

On Sun, Sep 02, 2007 at 02:48:04PM +0100, David Woodhouse wrote:

But doesn't GC only happen in prepare_write in the case that the
i_size is being extended into a new page?

If you GC the page in prepare_write (when it may be potentially
!uptodate), then I'm sure you would get a deadlock when read_cache_page
finds it non-uptodate and locks it for readpage().



OK. The patches are in -mm now, but could get in as early as 2.6.24.
If you have any suggestions about the form of the APIs, it would be
good to hear them.

  

Thanks,
-
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)