sched/preempt, mm/fault: Decouple preemption from the page fault logic
sched/preempt, mm/fault: Decouple preemption from the page fault logic

As the fault handlers now all rely on the pagefault_disabled() checks
and implicit preempt_disable() calls by pagefault_disable() have been
made explicit, we can completely rely on the pagefault_disableD counter.

So let's no longer touch the preempt count when disabling/enabling
pagefaults. After a call to pagefault_disable(), pagefault_disabled()
will return true, but in_atomic() won't.

Reviewed-and-tested-by: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>
Signed-off-by: David Hildenbrand <ae115cfa58aaa81618f054056f573d0d78c5ed09@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <3fddac958924aef220f202ca567388ddab3f14a8@infradead.org>
Cc: 6ba8d40bf791aeeb07897c08428a545bbb46dd90@ACULAB.COM
Cc: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
Cc: Peter Zijlstra <3fddac958924aef220f202ca567388ddab3f14a8@infradead.org>
Cc: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>
Cc: f2295d84e358395675bc8031be58672073ae065e@linux.ie
Cc: 5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org
Cc: a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org
Cc: 265264fed90bdf8e813a354375ec16f47ebdb1c5@linutronix.de
Cc: 49712f635b03c16d7f4c43df70e49ec8c565813d@de.ibm.com
Cc: c1b6782c4af8f0673da8923a0702a1832e5940f4@intel.com
Cc: 8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com
Cc: ef65de1c7be0aa837fe7b25ba9a7739905af6a55@gondor.apana.org.au
Cc: 49a09dbe7566ae3ca61c38b7744d0f03c0686c54@suse.cz
Cc: d3abdf3e2800e6cb849f11b81e6eb50b34d96431@google.com
Cc: 255103e50249e3d658441816e0597170ebfc16ef@redhat.com
Cc: 19a0ba370c443ba08d20b5061586430ab449ee8c@samba.org
Cc: 92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org
Cc: 52616596d8f5df0d597e85ab515377f92f939c68@de.ibm.com
Cc: 13279bcd383f6312e7c872835c77108bbfc630d5@windriver.com
Link: http://lkml.kernel.org/r/1431359540-32227-16-git-send-email-ae115cfa58aaa81618f054056f573d0d78c5ed09@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@kernel.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs