kernel/include/linux/sched/mm.h
.. .. @@ -49,6 +49,17 @@ 49 49 __mmdrop(mm); 50 50 } 51 51 52 +#ifdef CONFIG_PREEMPT_RT_BASE53 +extern void __mmdrop_delayed(struct rcu_head *rhp);54 +static inline void mmdrop_delayed(struct mm_struct *mm)55 +{56 + if (atomic_dec_and_test(&mm->mm_count))57 + call_rcu(&mm->delayed_drop, __mmdrop_delayed);58 +}59 +#else60 +# define mmdrop_delayed(mm) mmdrop(mm)61 +#endif62 +52 63 void mmdrop(struct mm_struct *mm); 53 64 54 65 /*