summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-07-03 13:30:37 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:37:47 (GMT)
commit07813f094869d3d7029269c0cd46115b17ab1666 (patch)
tree4694c70e17a64f97df02f6d28351ae95721763cd /kernel/fork.c
parentb9781be7057ca04c2bbf6f6d4d4da9925afb1ef2 (diff)
downloadlinux-fsl-qoriq-07813f094869d3d7029269c0cd46115b17ab1666.tar.xz
mm: Prepare decoupling the page fault disabling logic
Add a pagefault_disabled variable to task_struct to allow decoupling the pagefault-disabled logic from the preempt count. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index c0174b8..a171a7f 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1297,6 +1297,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
p->hardirq_context = 0;
p->softirq_context = 0;
#endif
+ p->pagefault_disabled = 0;
#ifdef CONFIG_LOCKDEP
p->lockdep_depth = 0; /* no locks held yet */
p->curr_chain_key = 0;