summaryrefslogtreecommitdiff
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2015-08-04 03:48:43 +0300
committerRalf Baechle <ralf@linux-mips.org>2015-08-05 12:11:10 +0300
commit46011e6ea39235e4aca656673c500eac81a07a17 (patch)
tree40c529d5bb47cc8fc7380df3ac4e918fd76852b3 /arch/x86/Kconfig
parenta4504755e7dc8d43ed2a934397032691cd03adf7 (diff)
downloadlinux-46011e6ea39235e4aca656673c500eac81a07a17.tar.xz
MIPS: Make set_pte() SMP safe.
On MIPS the GLOBAL bit of the PTE must have the same value in any aligned pair of PTEs. These pairs of PTEs are referred to as "buddies". In a SMP system is is possible for two CPUs to be calling set_pte() on adjacent PTEs at the same time. There is a race between setting the PTE and a different CPU setting the GLOBAL bit in its buddy PTE. This race can be observed when multiple CPUs are executing vmap()/vfree() at the same time. Make setting the buddy PTE's GLOBAL bit an atomic operation to close the race condition. The case of CONFIG_64BIT_PHYS_ADDR && CONFIG_CPU_MIPS32 is *not* handled. Signed-off-by: David Daney <david.daney@cavium.com> Cc: <stable@vger.kernel.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/10835/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/x86/Kconfig')
0 files changed, 0 insertions, 0 deletions