powerpc/mm: Lockless get_user_pages_fast() for 64-bit (v3)
authorNick Piggin <npiggin@suse.de>
Wed, 30 Jul 2008 05:23:13 +0000 (15:23 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 30 Jul 2008 05:26:54 +0000 (15:26 +1000)
commitce0ad7f0952581ba75ab6aee55bb1ed9bb22cf4f
treebf2a8845a031cb685219db2ddcb3d296b4a9ffab
parent7d2a175b9bf6e9422bebe95130a3c79a25ff4602
powerpc/mm: Lockless get_user_pages_fast() for 64-bit (v3)

Implement lockless get_user_pages_fast for 64-bit powerpc.

Page table existence is guaranteed with RCU, and speculative page references
are used to take a reference to the pages without having a prior existence
guarantee on them.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig
arch/powerpc/mm/Makefile
arch/powerpc/mm/gup.c [new file with mode: 0644]
include/asm-powerpc/pgtable-ppc64.h
include/linux/pagemap.h