diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-06-06 12:20:33 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-04-04 09:14:35 -0500 |
commit | ca9c3d1232f5a2e34cd9f08d243b8f223827d6fd (patch) | |
tree | 3cb383a148db543c04787d0df32f07db478b2158 /kernel/fork.c | |
parent | 8bec95438ba97b9f983f63155b3db3966de39a15 (diff) |
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.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index fe49c39c4bd6..78e5e6a3bc0b 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -202,7 +202,7 @@ EXPORT_SYMBOL_GPL(__put_task_struct); #else void __put_task_struct_cb(struct rcu_head *rhp) { - struct task_struct *tsk = container_of(rhp, struct task_struct, rcu); + struct task_struct *tsk = container_of(rhp, struct task_struct, put_rcu); __put_task_struct(tsk); @@ -553,6 +553,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. */ |