From: Rik van Riel Date: Tue, 6 Nov 2012 09:54:47 +0000 (+0000) Subject: x86: mm: only do a local tlb flush in ptep_set_access_flags() X-Git-Tag: v3.8-rc1~92^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9a921cf9bf3b524feddc484e2b4d070b7ca0d0;p=pandora-kernel.git x86: mm: only do a local tlb flush in ptep_set_access_flags() The function ptep_set_access_flags() is only ever invoked to set access flags or add write permission on a PTE. The write bit is only ever set together with the dirty bit. Because we only ever upgrade a PTE, it is safe to skip flushing entries on remote TLBs. The worst that can happen is a spurious page fault on other CPUs, which would flush that TLB entry. Lazily letting another CPU incur a spurious page fault occasionally is (much!) cheaper than aggressively flushing everybody else's TLB. Signed-off-by: Rik van Riel Cc: Linus Torvalds Cc: Andrew Morton Cc: Peter Zijlstra Cc: Michel Lespinasse Cc: Ingo Molnar --- Reading git-diff-tree failed