pid: add pid reserve method for checkpoint and restore
hulk inclusion category: feature bugzilla: 48159 CVE: N/A ------------------------------ We record the pid of dump tasks in the reserved memory, and reserve the pids before init task start. In the recover process, free the reserved pids and realloc them by setting fork_pid. Signed-off-by:Jingxian He <hejingxian@huawei.com> Reviewed-by:
Jing Xiangfeng <jingxiangfeng@huawei.com> Reviewed-by:
Xie XiuQi <xiexiuqi@huawei.com> Reviewed-by:
Hanjun Guo <guohanjun@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- drivers/char/pin_memory.c 31 additions, 0 deletionsdrivers/char/pin_memory.c
- include/linux/pin_mem.h 6 additions, 0 deletionsinclude/linux/pin_mem.h
- include/linux/sched.h 3 additions, 0 deletionsinclude/linux/sched.h
- init/init_task.c 3 additions, 0 deletionsinit/init_task.c
- kernel/pid.c 29 additions, 0 deletionskernel/pid.c
- mm/Kconfig 10 additions, 0 deletionsmm/Kconfig
- mm/pin_mem.c 51 additions, 0 deletionsmm/pin_mem.c
Please register or sign in to comment