Commit 79989de5 authored by Yicheng Qin's avatar Yicheng Qin Committed by Pavel Emelyanov

always set scheduler and priority in restore to ensure correctness

Make criu still set scheduler and priority on restored process even
when its setting is the default one. Or if criu itself has special
setting on it, forked processes will inherit it, which is a wrong setting
for restored ones.
Signed-off-by: 's avatarYicheng Qin <yichengq@google.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 34f4e2d0
......@@ -187,9 +187,6 @@ static void restore_sched_info(struct rst_sched_param *p)
{
struct sched_param parm;
if ((p->policy == SCHED_OTHER) && (p->nice == 0))
return;
pr_info("Restoring scheduler params %d.%d.%d\n",
p->policy, p->nice, p->prio);
......
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