hc
2023-11-22 f743a7adbd6e230d66a6206fa115b59fec2d88eb
kernel/include/linux/sched/mm.h
....@@ -49,6 +49,17 @@
4949 __mmdrop(mm);
5050 }
5151
52
+#ifdef CONFIG_PREEMPT_RT_BASE
53
+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
+#else
60
+# define mmdrop_delayed(mm) mmdrop(mm)
61
+#endif
62
+
5263 void mmdrop(struct mm_struct *mm);
5364
5465 /*