]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - include/linux/highmem.h
sched/preempt, mm/kmap: Explicitly disable/enable preemption in kmap_atomic_*
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 11 May 2015 15:52:09 +0000 (17:52 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 06:39:14 +0000 (08:39 +0200)
commit2cb7c9cb426660b5ed58b643d9e7dd5d50ba901f
tree39976a7d4ee0ee34da0072e71fcd49e02480f096
parentb3c395ef5556a6c60f4426cc060f5b7bdcf82d5b
sched/preempt, mm/kmap: Explicitly disable/enable preemption in kmap_atomic_*

The existing code relies on pagefault_disable() implicitly disabling
preemption, so that no schedule will happen between kmap_atomic() and
kunmap_atomic().

Let's make this explicit, to prepare for pagefault_disable() not
touching preemption anymore.

Reviewed-and-tested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: David.Laight@ACULAB.COM
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: airlied@linux.ie
Cc: akpm@linux-foundation.org
Cc: benh@kernel.crashing.org
Cc: bigeasy@linutronix.de
Cc: borntraeger@de.ibm.com
Cc: daniel.vetter@intel.com
Cc: heiko.carstens@de.ibm.com
Cc: herbert@gondor.apana.org.au
Cc: hocko@suse.cz
Cc: hughd@google.com
Cc: mst@redhat.com
Cc: paulus@samba.org
Cc: ralf@linux-mips.org
Cc: schwidefsky@de.ibm.com
Cc: yang.shi@windriver.com
Link: http://lkml.kernel.org/r/1431359540-32227-5-git-send-email-dahi@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
15 files changed:
arch/arm/mm/highmem.c
arch/frv/mm/highmem.c
arch/metag/mm/highmem.c
arch/microblaze/mm/highmem.c
arch/mips/mm/highmem.c
arch/mn10300/include/asm/highmem.h
arch/parisc/include/asm/cacheflush.h
arch/powerpc/mm/highmem.c
arch/sparc/mm/highmem.c
arch/tile/mm/highmem.c
arch/x86/mm/highmem_32.c
arch/x86/mm/iomap_32.c
arch/xtensa/mm/highmem.c
include/linux/highmem.h
include/linux/io-mapping.h