diff --git a/include/linux/oom.h b/include/linux/oom.h index f008e23d9b41..1f1aebf17001 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h @@ -109,6 +109,7 @@ extern int unregister_oom_notifier(struct notifier_block *nb); extern bool oom_killer_disable(signed long timeout); extern void oom_killer_enable(void); +extern bool __oom_reap_task_mm(struct mm_struct *mm); extern struct task_struct *find_lock_task_mm(struct task_struct *p); diff --git a/kernel/signal.c b/kernel/signal.c index a55cc27959e7..f7a4cfbe24ad 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1312,6 +1312,7 @@ int do_send_sig_info(int sig, struct kernel_siginfo *info, struct task_struct *p return ret; } +EXPORT_SYMBOL_GPL(do_send_sig_info); enum sig_handler { HANDLER_CURRENT, /* If reachable use the current handler */ diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 6bb096462170..7a9e1c7f636c 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -511,7 +511,7 @@ static DECLARE_WAIT_QUEUE_HEAD(oom_reaper_wait); static struct task_struct *oom_reaper_list; static DEFINE_SPINLOCK(oom_reaper_lock); -static bool __oom_reap_task_mm(struct mm_struct *mm) +bool __oom_reap_task_mm(struct mm_struct *mm) { struct vm_area_struct *vma; bool ret = true; @@ -560,6 +560,7 @@ static bool __oom_reap_task_mm(struct mm_struct *mm) return ret; } +EXPORT_SYMBOL_GPL(__oom_reap_task_mm); /* * Reaps the address space of the give task.