Re: 2.4.19pre7aa1

Andrea Arcangeli (andrea@suse.de)
Sat, 20 Apr 2002 23:38:41 +0200


On Sat, Apr 20, 2002 at 12:37:51PM -0700, Andrew Morton wrote:
> Andrea Arcangeli wrote:
> >
> > ...
> > Only in 2.4.19pre6aa1: 00_prepare-write-fixes-2
> > Only in 2.4.19pre7aa1: 00_prepare-write-fixes-3
> >
> > Add a missing flush_dcache_page() to the prepare write corruption
> > fixes. Noticed by Andrew Morton.
> >
>
> Why do we perform those "flushes"[1] at all? The memsets should
> never occur when the page is mapped into any process tables.

The dcache flushes are necessary before the page is mapped, to keep
track which pages we need to flush from the kernel address space
during the page fault right before we map them into userspace (i.e.
during flush_icache_page). We're not really flushing the cache there, we
only keeps track of it through the arch bitflag.

Andrea
-
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/