[PATCH] mm: pagefault_{disable,enable}()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Thu, 7 Dec 2006 04:32:20 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:21 +0000 (08:39 -0800)
commita866374aecc90c7d90619727ccd851ac096b2fc7
treeeabae0b36b5281dcef20563470c7f05549689b8c
parent6edaf68a87d17570790fd55f0c451a29ec1d6703
[PATCH] mm: pagefault_{disable,enable}()

Introduce pagefault_{disable,enable}() and use these where previously we did
manual preempt increments/decrements to make the pagefault handler do the
atomic thing.

Currently they still rely on the increased preempt count, but do not rely on
the disabled preemption, this might go away in the future.

(NOTE: the extra barrier() in pagefault_disable might fix some holes on
       machines which have too many registers for their own good)

[heiko.carstens@de.ibm.com: s390 fix]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Nick Piggin <npiggin@suse.de>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 files changed:
arch/frv/kernel/futex.c
arch/i386/mm/highmem.c
arch/mips/mm/highmem.c
arch/s390/lib/uaccess_std.c
arch/sparc/mm/highmem.c
include/asm-frv/highmem.h
include/asm-generic/futex.h
include/asm-i386/futex.h
include/asm-ia64/futex.h
include/asm-mips/futex.h
include/asm-parisc/futex.h
include/asm-powerpc/futex.h
include/asm-ppc/highmem.h
include/asm-sparc64/futex.h
include/asm-x86_64/futex.h
include/linux/uaccess.h
kernel/futex.c