]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: numa: do not clear PTE for pte_numa update
authorMel Gorman <mgorman@suse.de>
Mon, 16 Dec 2013 23:44:44 +0000 (10:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:44:44 +0000 (10:44 +1100)
commitff1ed69ff2ca223d3807eaf3dd03a84cfe16bf82
tree0410e941072b0ce0c4a0da3012324ee1f4ff4033
parent1463967443ab695e970617af901020556168dd87
mm: numa: do not clear PTE for pte_numa update

The TLB must be flushed if the PTE is updated but change_pte_range is
clearing the PTE while marking PTEs pte_numa without necessarily flushing
the TLB if it reinserts the same entry.  Without the flush, it's
conceivable that two processors have different TLBs for the same virtual
address and at the very least it would generate spurious faults.  This
patch only unmaps the pages in change_pte_range for a full protection
change.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: Alex Thorlton <athorlton@sgi.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mprotect.c