mm, rt: kmap_atomic scheduling
authorPeter Zijlstra <peterz@infradead.org>
Thu, 28 Jul 2011 08:43:51 +0000 (10:43 +0200)
committerClark Williams <williams@redhat.com>
Wed, 28 Dec 2011 22:25:50 +0000 (16:25 -0600)
commit6539c3c62945d3340544bc45dc112714e2427d54
treebea549695e8ef7b5151f6ab930a2d78bfeb0a105
parent6ad41c0062520a65be3a1127bf5256cb1be78e05
mm, rt: kmap_atomic scheduling

In fact, with migrate_disable() existing one could play games with
kmap_atomic. You could save/restore the kmap_atomic slots on context
switch (if there are any in use of course), this should be esp easy now
that we have a kmap_atomic stack.

Something like the below.. it wants replacing all the preempt_disable()
stuff with pagefault_disable() && migrate_disable() of course, but then
you can flip kmaps around like below.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
[dvhart@linux.intel.com: build fix]
Link: http://lkml.kernel.org/r/1311842631.5890.208.camel@twins
arch/x86/kernel/process_32.c
include/linux/sched.h
mm/memory.c