Re: [patch] cache flush bug in mm/filemap.c (all kernels >=2.5.30(at least))

From: David S. Miller (davem@redhat.com)
Date: Mon May 26 2003 - 00:41:20 EST


From: Mika Penttilä <mika.penttila@xxxxxxxxxxx>
Date: Mon, 26 May 2003 08:36:34 +0300

ah, ok. so there are cache issues even if if the user pte is not
established yet? Then it seems natural to couple flush_dcache_page
with pte establishing, not at the driver level.

flush_dcache_page() or some architecture level equivalent belongs
whereever the kernel uses CPU store instructions to modify a page's
contents.

When IDE uses PIO to do a data transfer, the flush belongs there.
Right now this is occuring in the architecture defined IDE insw/outsw
macros. It very well might be more efficient to do this at a higher
level where the total extent of the I/O is known.
-
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/