On Sun, Apr 27, 2014 at 12:33 PM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote: > > Oh, absolutely. I wasn't arguing it didn't need it. I was merely > pointing out that if one was to add to Linus' patch such that we'd only > do the force_flush for mapping_cap_account_dirty() we wouldn't need > extra things to deal with shmem. I think we can certainly add that check if we find out that it is indeed a performance problem. I *could* imagine loads where people mmap/munmap shmem regions at a high rate, but don't actually know of any (remember: for this to matter they also have to dirty the pages). In the absence of such knowledge, I'd rather not make things more complex than they already are. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html