powerpc/mm: Add memory barrier in __hugepte_alloc()
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Thu, 24 Mar 2016 06:07:57 +0000 (02:07 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Jul 2016 10:13:28 +0000 (20:13 +1000)
commit0eab46be21449f1612791201aa029facb676bd31
treeec23ccf83fe827e4ec636293fab7ceaece0fadf4
parent31278b17a0dfed3014786b623fd07ee110b801da
powerpc/mm: Add memory barrier in __hugepte_alloc()

__hugepte_alloc() uses kmem_cache_zalloc() to allocate a zeroed PTE
and proceeds to use the newly allocated PTE. Add a memory barrier to
make sure that the other CPUs see a properly initialized PTE.

Based on a fix suggested by James Dykman.

Reported-by: James Dykman <jdykman@us.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Tested-by: James Dykman <jdykman@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hugetlbpage.c
This page took 0.026122 seconds and 5 git commands to generate.