[CRIU] [PATCH] always set scheduler and priority in restore to ensure correctness

Yicheng Qin yichengq at google.com
Mon Jul 8 20:16:43 EDT 2013


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 <yichengq at google.com>
---

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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130708/28fe9cfa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.patch
Type: application/octet-stream
Size: 836 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130708/28fe9cfa/attachment.obj>


More information about the CRIU mailing list