linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] PM, freezer: Don't thaw when it's intended frozen processes
@ 2015-05-07  6:45 Kyungmin Park
  2015-05-07 15:42 ` Tejun Heo
  0 siblings, 1 reply; 11+ messages in thread
From: Kyungmin Park @ 2015-05-07  6:45 UTC (permalink / raw)
  To: linux-mm
  Cc: Andrew Morton, Tejun Heo, \"Rafael J. Wysocki\",
	David Rientjes, Johannes Weiner, Oleg Nesterov, Cong Wang, LKML,
	linux-pm

From: Kyungmin Park <kyungmin.park@samsung.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@samsung.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);
 

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-05-13 13:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-07  6:45 [RFC PATCH] PM, freezer: Don't thaw when it's intended frozen processes Kyungmin Park
2015-05-07 15:42 ` Tejun Heo
2015-05-08  0:04   ` Kyungmin Park
2015-05-08 15:25     ` Tejun Heo
2015-05-11  4:28       ` Kyungmin Park
2015-05-11  7:47         ` Kyungmin Park
2015-05-12 14:43           ` Tejun Heo
2015-05-13  0:42             ` Kyungmin Park
2015-05-13 13:54               ` Tejun Heo
2015-05-11  6:33       ` Krzysztof Kozlowski
2015-05-12 14:40         ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).