summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-08-11 13:31:31 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:20:11 (GMT)
commit9009906f829477f42291c19b5a0f6f50c2be41a6 (patch)
treeba522aefcb24e5ae5b92eb3459bbb834f0a536a8 /kernel/fork.c
parent9a58969cf8c3f2a5cf3b0cf04144ca2573758d42 (diff)
downloadlinux-fsl-qoriq-9009906f829477f42291c19b5a0f6f50c2be41a6.tar.xz
mm: pagefault_disabled()
Wrap the test for pagefault_disabled() into a helper, this allows us to remove the need for current->pagefault_disabled on !-rt kernels. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/n/tip-3yy517m8zsi9fpsf14xfaqkw@git.kernel.org
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 4d376e8..599033b 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1307,7 +1307,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
p->hardirq_context = 0;
p->softirq_context = 0;
#endif
+#ifdef CONFIG_PREEMPT_RT_FULL
p->pagefault_disabled = 0;
+#endif
#ifdef CONFIG_LOCKDEP
p->lockdep_depth = 0; /* no locks held yet */
p->curr_chain_key = 0;