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

David S. Miller (davem@redhat.com)
Sun, 25 May 2003 22:36:55 -0700 (PDT)


From: Mika Penttilä <mika.penttila@kolumbus.fi>
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/