Commit 0e1b063d authored by Philippe Gerum's avatar Philippe Gerum

fork: ipipe: announce mm dismantling

IPIPE_KEVT_CLEANUP is emitted before a process memory context is
entirely dropped, after all the mappings have been exited. Per-process
resources which might be maintained by the co-kernel could be released
there, as all tasks have exited.
parent bbba26eb
......@@ -54,6 +54,7 @@
#include <linux/futex.h>
#include <linux/compat.h>
#include <linux/kthread.h>
#include <linux/ipipe.h>
#include <linux/task_io_accounting_ops.h>
#include <linux/rcupdate.h>
#include <linux/ptrace.h>
......@@ -1001,6 +1002,7 @@ static inline void __mmput(struct mm_struct *mm)
exit_aio(mm);
ksm_exit(mm);
khugepaged_exit(mm); /* must run before exit_mmap */
__ipipe_report_cleanup(mm);
exit_mmap(mm);
mm_put_huge_zero_page(mm);
set_mm_exe_file(mm, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment