]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: numa: guarantee that tlb_flush_pending updates are visible before page table...
authorMel Gorman <mgorman@suse.de>
Mon, 16 Dec 2013 23:44:45 +0000 (10:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:44:45 +0000 (10:44 +1100)
commit7b8b061afc691a963480c9040670b8699c86e467
tree8d1fb4dd35cc4f451c0b791ae5560cfb894cee14
parentc18de684d2b6251fd8ed0779f93a81077c93bfcd
mm: numa: guarantee that tlb_flush_pending updates are visible before page table updates

According to documentation on barriers, stores issued before a LOCK can
complete after the lock implying that it's possible tlb_flush_pending can
be visible after a page table update.  As per revised documentation, this
patch adds a smp_mb__before_spinlock to guarantee the correct ordering.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm_types.h