diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-03 13:30:37 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:18:40 (GMT) |
commit | 60f0b2748306e45a2dd3ea6a42d0136439793664 (patch) | |
tree | 9330a19c9cdf8242d6798bfa224877a3ae6bbd94 /kernel/fork.c | |
parent | 6ebefa18828dae29742463c1ed3f59b16bbfdc1d (diff) | |
download | linux-fsl-qoriq-60f0b2748306e45a2dd3ea6a42d0136439793664.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.c | 1 |
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; |