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]

 



> I'm willing to do that - and I guess this means we can probably do this
> instead of walking the list of VMAs for the shared mapping, thereby
> hitting both anonymous and shared mappings with the same code?

But for the get_user_pages() case there's no point, is there?  The VMA
and the virtual address is already available, so trying to find it
again through RMAP doesn't much make sense.

Users of get_user_pages() don't care about any other mappings (maybe
ptrace does, I don't know) only about one single user mapping and one
kernel mapping.

So using flush_dcache_page() there is an overkill, trying to teach it
about anonymous pages is not the real solution, flush_dcache_page()
was never meant to be used on anything but file mapped pages.

Miklos
-
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