Subject: [PATCH] always set scheduler and priority in restore to ensure correctness
From: Yicheng Qin <[email-masked]>

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: Yicheng Qin <[email-masked]>
---

diff --git a/pie/restorer.c b/pie/restorer.c
index 649482b..c4171bd 100644
--- a/pie/restorer.c
+++ b/pie/restorer.c
@@ -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);