[parisc-linux] Re: shm cache flush bug?

Thomas Bogendoerfer tsbogend@alpha.franken.de
Sun, 30 Sep 2001 14:39:28 +0200


On Sun, Sep 30, 2001 at 12:38:08AM -0600, John Marvin wrote:
> The workaround fix for your problem will probably involve flushing a
> specific page.  Since the problem you are seeing is related to System V

there is a flush_page_to_ram() at the right place.

I've tested following patch:

diff -u -r1.32 pgalloc.h
--- pgalloc.h	2001/09/06 09:44:12	1.32
+++ pgalloc.h	2001/09/30 12:13:57
@@ -17,6 +17,7 @@
 static inline void
 flush_page_to_ram(struct page *page)
 {
+	flush_kernel_dcache_page (page_address(page));
 }

That one fixes the problem, too. Is this patch something you would see
as the right thing to do ?

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea.                                 [ Alexander Viro on linux-kernel ]