]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/thp: Add write barrier after updating the valid bit
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 13 Aug 2014 07:01:57 +0000 (12:31 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 13 Aug 2014 08:20:37 +0000 (18:20 +1000)
commitd4c24574aa8f1c545351e83a8deab9872a99dd28
tree92b61ca0ea8b8cbd4ec4c9934aafa39eab29fd4d
parent05988a81a1d9c2ed4da7c07e7117291c218baf72
powerpc/thp: Add write barrier after updating the valid bit

With hugepages, we store the hpte valid information in the pte page
whose address is stored in the second half of the PMD. Use a
write barrier to make sure clearing pmd busy bit and updating
hpte valid info are ordered properly.

CC: <stable@vger.kernel.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/hugepage-hash64.c