summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-06-06 10:20:33 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:38:11 (GMT)
commit7dc661e5831228f39b825b181295fc4e16d0d685 (patch)
tree97642b53a9dace778c9faf6ae18cd29b58466539 /kernel/fork.c
parent035b662c91680d741f19570147c4fef48e443560 (diff)
downloadlinux-fsl-qoriq-7dc661e5831228f39b825b181295fc4e16d0d685.tar.xz
sched-mmdrop-delayed.patch
Needs thread context (pgd_lock) -> ifdeffed. workqueues wont work with RT Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index d1e28a3..b681c38 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -611,6 +611,19 @@ void __mmdrop(struct mm_struct *mm)
}
EXPORT_SYMBOL_GPL(__mmdrop);
+#ifdef CONFIG_PREEMPT_RT_BASE
+/*
+ * RCU callback for delayed mm drop. Not strictly rcu, but we don't
+ * want another facility to make this work.
+ */
+void __mmdrop_delayed(struct rcu_head *rhp)
+{
+ struct mm_struct *mm = container_of(rhp, struct mm_struct, delayed_drop);
+
+ __mmdrop(mm);
+}
+#endif
+
/*
* Decrement the use count and release all resources for an mm.
*/