Commit f0a86437 authored by Pavel Emelyanov's avatar Pavel Emelyanov

kerndat: Initialize necessary kerndats on restore

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 461a4667
......@@ -63,6 +63,7 @@
#include "vdso.h"
#include "stats.h"
#include "tun.h"
#include "kerndat.h"
#include "parasite-syscall.h"
......@@ -1593,6 +1594,9 @@ int cr_restore_tasks(void)
if (init_stats(RESTORE_STATS))
return -1;
if (kerndat_init_rst())
return -1;
timing_start(TIME_RESTORE);
if (cpu_init() < 0)
......
......@@ -9,6 +9,7 @@
*/
int kerndat_init(void);
int kerndat_init_rst(void);
int kerndat_get_dirty_track(void);
extern dev_t kerndat_shmem_dev;
......
......@@ -152,13 +152,17 @@ int kerndat_init(void)
ret = kerndat_get_shmemdev();
if (!ret)
ret = kerndat_get_dirty_track();
if (!ret)
/*
* Read TCP sysctls before anything else,
* since the limits we're interested in are
* not available inside namespaces.
*/
ret = tcp_read_sysctl_limits();
return ret;
}
int kerndat_init_rst(void)
{
/*
* Read TCP sysctls before anything else,
* since the limits we're interested in are
* not available inside namespaces.
*/
return tcp_read_sysctl_limits();
}
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