Re: [patch] cache flush bug in mm/filemap.c (all kernels >=
David S. Miller (davem@redhat.com)
Wed, 28 May 2003 15:47:20 -0700 (PDT)
From: Roman Zippel <zippel@linux-m68k.org>
Date: Wed, 28 May 2003 18:35:15 +0200 (CEST)
set_pte() establishes the mapping, this means another cpu can get the pte
and start reading the data e.g. into the instruction cache, but if that
cpu still has dirty data in the data cache (e.g. a write() or a disk
read), the following update_mmu_cache() might be too late.
If that really matters for you, your set_pte() could add this
operation to a list of pending set_pte()'s in the mm_struct arch
specific context area. Then at update_mmu_cache() it runs this
list of todo items.
I don't see the problem.
-
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/