Re: [PATCH] mm: fix page_mkclean_one

From: David Miller
Date: Wed Dec 27 2006 - 19:53:04 EST


From: Linus Torvalds <torvalds@xxxxxxxx>
Date: Wed, 27 Dec 2006 16:39:43 -0800 (PST)

>
>
> On Wed, 27 Dec 2006, Linus Torvalds wrote:
> >
> > I think the test-case could probably be improved by having a munmap() and
> > page-cache flush in between the writing and the checking, to see whether
> > that shows the corruption easier (and possibly without having to start
> > paging in order to throw the pages out, which would simplify testing a
> > lot).
>
> I think the page-writeout is implicated, because I do seem to need it, but
> the page-cache flush does seem to make corruption _easier_ to see. I now
> seem about to trigger it with a 100MB file on a 256MB machine in a minute
> or so, with this slight modification.
>
> I still don't see _why_, though. But maybe smarter people than me can see
> it..

FWIW this program definitely triggers the bug for me.
-
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/