[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <20150507064557.GA26928@july>
Date: Thu, 07 May 2015 15:45:57 +0900
From: Kyungmin Park <kmpark@...radead.org>
To: linux-mm@...ck.org
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Tejun Heo <tj@...nel.org>,
"\\\"Rafael J. Wysocki\\\"" <rjw@...ysocki.net>,
David Rientjes <rientjes@...gle.com>,
Johannes Weiner <hannes@...xchg.org>,
Oleg Nesterov <oleg@...hat.com>,
Cong Wang <xiyou.wangcong@...il.com>,
LKML <linux-kernel@...r.kernel.org>, linux-pm@...r.kernel.org
Subject: [RFC PATCH] PM, freezer: Don't thaw when it's intended frozen processes
From: Kyungmin Park <kyungmin.park@...sung.com>
Some platform uses freezer cgroup for speicial purpose to schedule out some applications. but after suspend & resume, these processes are thawed and running.
but it's inteneded and don't need to thaw it.
To avoid it, does it possible to modify resume code and don't thaw it when resume? does it resonable?
Signed-off-by: Kyungmin Park <kyungmin.park@...sung.com>
---
diff --git a/kernel/power/process.c b/kernel/power/process.c
index 564f786..6eed7df 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -202,7 +202,9 @@ void thaw_processes(void)
for_each_process_thread(g, p) {
/* No other threads should have PF_SUSPEND_TASK set */
WARN_ON((p != curr) && (p->flags & PF_SUSPEND_TASK));
- __thaw_task(p);
+ /* Don't need to thaw when it's already frozen by userspace */
+ if (!cgroup_freezing(p))
+ __thaw_task(p);
}
read_unlock(&tasklist_lock);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists