lkml.org 
[lkml]   [2006]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 10/13: eCryptfs] Mmap operations
On Fri, 05 May 2006 18:38:48 +0300
Pekka Enberg <penberg@cs.helsinki.fi> wrote:

> On Thu, 2006-05-04 at 22:43 +0100, David Howells wrote:
> > > When writing CacheFiles, I noticed that ext3 would occasionally unlock a page
> > > that had neither PG_uptodate nor PG_error set, and so I had to force another
> > > readpage() on it.
>
> On Fri, 2006-05-05 at 10:22 -0500, Dave Kleikamp wrote:
> > I understand this comes from the FiST package. In that code, there is a
> > comment in one of these functions explaining the second read. It would
> > be nice to have that comment in here too:
> >
> > /*
> > * call readpage() again if we returned from wait_on_page with a
> > * page that's not up-to-date; that can happen when a partial
> > * page has a few buffers which are ok, but not the whole
> > * page.
> > */
> >
> > I'm a bit surprised that this could happen.
>
> Me too. How do we know we don't end up the same way for the second read?
>

And why doesn't it cause do_generic_mapping_read() and page_cache_read() to
fail?

This is all raher fishy.
-
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/

\
 
 \ /
  Last update: 2006-05-06 04:26    [W:0.080 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site