Re: [patch 2/5] mm: fault vs invalidate/truncate race fix

From: Nick Piggin
Date: Wed Oct 11 2006 - 05:22:19 EST


On Tue, Oct 10, 2006 at 11:00:42PM -0700, Andrew Morton wrote:
> On Wed, 11 Oct 2006 15:39:22 +1000
> Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:
>
> > But I see that it does read twice. Do you want that behaviour retained? It
> > seems like at this level it would be logical to read it once and let lower
> > layers take care of any retries?
>
> argh. Linus has good-sounding reasons for retrying the pagefault-path's
> read a single time, but I forget what they are. Something to do with
> networked filesystems? (adds cc)

While you're there, can anyone tell me why we want an external
ptracer to be able to access pages that are outside i_size? I
haven't removed the logic of course, but I'm curious about the
history and usage of such a thing.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/