[parisc-linux] Re: Question about cache flushing and fork

David S. Miller davem at redhat.com
Mon Dec 15 21:48:35 MST 2003


On Mon, 15 Dec 2003 20:40:33 -0800
Randolph Chung <randolph at tausq.org> wrote:

> Can someone please explain why it is necessary to flush the cache 
> during fork()? (i.e. call to flush_cache_mm() in dup_mmap)

Writable pages that will be shared between the child and
parent are marked read-only and COW, some cpu caches store
protection information in the cache lines in order to avoid
TLB lookups etc. so the caches must be flushed since the
page protection information is changing.


More information about the parisc-linux mailing list