Re: fuse, get_user_pages, flush_anon_page, aliasing caches and all that again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2007-01-01 at 15:04 -0800, David Miller wrote:
> I thought this was accepted and Ralf is using it on MIPS?

It partially is ... we're using it on parisc as well, but only as a
supplement to the current linux flushing APIs.  There's still no
guarantee in the standard linux API that 

kmap();  do something; kunmap();

leaves everything correctly coherent.

I have some code for parisc that implements the strong coherency around
kmap/kunmap.  What we do is actually use the page access flags to tell
us if the page was altered by the "do something" code and thus flush
only where necessary (i.e. our prototype was hint free).  If everyone's
happy with this, we can kill off flush_kernel_dcache_page() and a few
other flush_dcache_pages() around kmaps and just let the kmap API handle
it all.  Unfortunately, this still won't solve the anonymous page
problem.

James


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux