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-04-10 00:19:10 (GMT)
commit967ee2862959218c3a4e92fcd90f6c92d4d7c79f (patch)
tree89fb530762e750ed86fb5792dbfc584d1c2cad4e /kernel/fork.c
parent85c522deb39a50e15271194e16eb80f5fe76ac51 (diff)
downloadlinux-fsl-qoriq-967ee2862959218c3a4e92fcd90f6c92d4d7c79f.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.
*/